[Bug 989585] Re: resolvconf failed to install/upgrade because /etc/resolv.conf immutable
Launchpad Bug Tracker
989585 at bugs.launchpad.net
Fri May 4 01:20:13 UTC 2012
This bug was fixed in the package resolvconf - 1.65ubuntu1
---------------
resolvconf (1.65ubuntu1) quantal; urgency=low
* Merge from debian unstable. Remaining changes:
- Make /etc/resolv.conf a relative symlink so that it works when
setting up chroots.
- Instead of throwing an error that aborts the upgrade when
/etc/resolv.conf is immutable, pop a debconf error message to let the
user know what's happening, then clear the immutable flag and continue
with the installation. LP: #989585.
- debian/config, debian/templates, debian/postinst: if we don't know that
/etc/resolv.conf was being dynamically managed before install (in at
least some cases), link the original contents of /etc/resolv.conf to
/etc/resolvconf/resolv.conf.d/tail so that any statically configured
nameservers aren't lost. LP: #923685.
- Use an upstart job instead of sysvinit script.
- Pre-Depend on the /run-providing version of initscripts instead of
depending, so that the preinst does the right thing when creating
/run/resolvconf/interfaces instead of getting clobbered later by a bind
mount on initscripts upgrade. LP: #922491.
- Completely drop the standard_run_subdirs_created helper function from
debian/postinst, since it serves no purpose here.
- postinst: Set resolvconf/linkify-resolvconf to false after initial
conversion, ensuring upgrades won't convert /etc/resolv.conf to
a symlink if the user manually converted it back to plain text.
(LP: #922677)
- Make resolvconf exit 0 when /etc/resolv.conf isn't a symlink
(instead of exit 1) and update the error message.
- Move the #DEBHELPER# token in debian/postinst to after the resolv.conf
symlink is set, so the init script can actually start (since it expects
/etc/resolv.conf to be a symlink).
- Eliminate all references to /etc/resolvconf/run. This should all be done
directly in /run, there is no reason to support making any of this
configurable with a symlink since we already have a versioned dependency
on the version of initscripts that introduces the /run transition.
resolvconf (1.65) unstable; urgency=low
[ Thomas Hood ]
* [3f0a1a1] Create /etc/resolvconf/run and its target and subdir
in the postinst as well as in the preinst (Closes: #662724)
* [ae16ea8] In postinst, as last resort, create /run/resolvconf/
even if /run isn't a tmpfs.
* [25711bf] ifupdown hook scripts: Don't return error to ifupdown
(Addresses #661591 so far as resolvconf is concerned)
* [8da29c3] Document that list-records doesn't list empty records.
Add patterns for biosdevnames (See LP#949473)
* [a998de3] Update default interface order patterns in list-records
* [94baf61] resolvconf(8): Update ref to dhclient hook script
(See LP#953257)
resolvconf (1.64) unstable; urgency=low
[ Thomas Hood ]
* [da2bfa4] Wipe more selectively (Closes: #657259)
* [e5fbaef] Ubuntu backport: on enable-updates, exit with nonzero
status if and only if updates could not be enabled (i.e., ignore
update script errors).
* [e1cb96e] Bump Standards-Version
-- Stephane Graber <stgraber at ubuntu.com> Thu, 03 May 2012 21:17:35 -0400
** Changed in: resolvconf (Ubuntu Quantal)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to resolvconf in Ubuntu.
https://bugs.launchpad.net/bugs/989585
Title:
resolvconf failed to install/upgrade because /etc/resolv.conf
immutable
Status in “resolvconf” package in Ubuntu:
Fix Released
Status in “resolvconf” source package in Precise:
Fix Committed
Status in “resolvconf” source package in Quantal:
Fix Released
Bug description:
[Impact] because Network Manager historically would overwrite users'
local DNS resolver settings on the desktop, a fair number of users
have marked this file immutable on the filesystem. This causes an
upgrade failure when going to 12.04, which makes resolvconf a non-
optional part of the infrastructure for all users and requires
/etc/resolv.conf to be replaced by a symlink.
[Development Fix]
resolvconf is arch: all and should be pocket-copied to quantal after SRU accept.
[Test Case]
1. Install Ubuntu 11.10
2. run: sudo chattr +i /etc/resolv.conf
3. do a release upgrade to 12.04
4. verify that the upgrade fails with an error from the resolvconf package.
5. enable -proposed
6. attempt the release upgrade again
7. verify that the upgrade completes successfully, and that /etc/resolv.conf has been made a symlink.
[Regression Potential]
Since this overrides a filesystem bit that's been explicitly set by the admin, some users may be unhappy with this change. But this is not a supported configuration, so this should not block the SRU.
Failed to install during upgrade
ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: resolvconf 1.63ubuntu11
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu5
AptOrdering:
unity-scope-musicstores: Install
resolvconf: Configure
ubuntu-minimal: Configure
unity-scope-musicstores: Configure
Architecture: amd64
Date: Fri Apr 27 11:23:12 2012
DuplicateSignature:
Setting up resolvconf (1.63ubuntu11) ...
resolvconf.postinst: Error: Cannot replace the current /etc/resolv.conf with a symbolic link because it is immutable. To correct this problem, gain root privileges in a terminal and run 'chattr -i /etc/resolv.conf' and then 'dpkg --configure resolvconf'. Aborting.
dpkg: error processing resolvconf (--configure):
subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
PackageArchitecture: all
SourcePackage: resolvconf
Title: package resolvconf 1.63ubuntu11 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to precise on 2012-04-27 (0 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/989585/+subscriptions
More information about the foundations-bugs
mailing list