resolvconf failed to install/upgrade because /etc/resolv.conf immutable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
resolvconf (Ubuntu) |
Fix Released
|
High
|
Steve Langasek | ||
Precise |
Fix Released
|
High
|
Steve Langasek | ||
Quantal |
Fix Released
|
High
|
Steve Langasek |
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
ProcVersionSign
Uname: Linux 3.2.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu5
AptOrdering:
unity-
resolvconf: Configure
ubuntu-minimal: Configure
unity-
Architecture: amd64
Date: Fri Apr 27 11:23:12 2012
DuplicateSignature:
Setting up resolvconf (1.63ubuntu11) ...
resolvconf.
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
PackageArchitec
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)
Related branches
- Kees Cook: Approve
- Canonical Foundations Team: Pending requested
-
Diff: 1704 lines (+871/-208)28 files modifiedbin/resolvconf (+5/-2)
debian/NEWS (+0/-17)
debian/changelog (+82/-1)
debian/control (+2/-2)
debian/copyright (+8/-5)
debian/po/cs.po (+43/-8)
debian/po/da.po (+39/-4)
debian/po/de.po (+39/-4)
debian/po/es.po (+69/-13)
debian/po/eu.po (+44/-11)
debian/po/fi.po (+41/-6)
debian/po/fr.po (+43/-8)
debian/po/gl.po (+39/-4)
debian/po/it.po (+43/-8)
debian/po/ja.po (+43/-8)
debian/po/nl.po (+42/-7)
debian/po/pt.po (+41/-6)
debian/po/ru.po (+44/-11)
debian/po/sv.po (+42/-8)
debian/po/templates.pot (+43/-7)
debian/po/vi.po (+43/-8)
debian/postinst (+40/-48)
debian/postrm (+9/-1)
debian/preinst (+6/-7)
debian/resolvconf.000resolvconf.if-up (+1/-1)
debian/resolvconf.resolvconf.if-down (+2/-2)
debian/templates (+17/-0)
man/resolvconf.8 (+1/-1)
tags: | removed: need-duplicate-check |
Changed in resolvconf (Ubuntu): | |
status: | Confirmed → Invalid |
summary: |
- package resolvconf 1.63ubuntu11 failed to install/upgrade: subprocess - installed post-installation script returned error exit status 1 + resolvconf failed to install/upgrade because /etc/resolv.conf immutable |
Changed in resolvconf (Ubuntu): | |
importance: | Undecided → High |
Changed in resolvconf (Ubuntu Precise): | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → ubuntu-12.04.1 |
tags: | added: rls-p-tracking |
Changed in resolvconf (Ubuntu Precise): | |
status: | Triaged → In Progress |
Changed in resolvconf (Ubuntu Quantal): | |
status: | Triaged → In Progress |
Changed in resolvconf (Ubuntu Precise): | |
assignee: | nobody → Steve Langasek (vorlon) |
Changed in resolvconf (Ubuntu Quantal): | |
assignee: | nobody → Steve Langasek (vorlon) |
description: | updated |
tags: | added: bugpattern-written |
tags: |
added: verification-failed removed: verification-needed |
Changed in resolvconf (Ubuntu Precise): | |
assignee: | Steve Langasek (vorlon) → sidnei (sidneilord) |
Submitter, please do as the error message suggests. Gain root privileges in a terminal and run 'chattr -i /etc/resolv.conf' and then 'dpkg --configure resolvconf.
For more information about resolvconf please start by reading resolvconf(8).