[Bug 989585] Re: resolvconf failed to install/upgrade because /etc/resolv.conf immutable

Steve Langasek steve.langasek at canonical.com
Fri Apr 27 22:11:50 UTC 2012


On Fri, Apr 27, 2012 at 08:57:51PM -0000, Nathan Stratton Treadway wrote:
> However, it seems like people who have done this on their machines have
> had some specific reason to take an interest in the specific contents of
> their resolv.conf file, and I wonder if silently undoing that will
> causes some unhappy surprises....

Agreed, which is why I'm proposing that we not be silent about it.  A
critical debconf error prompt is appropriate here.

There's no sense in failing the upgrade for something we know how to fix
automatically, because there is ultimately only one choice here.  You can't
upgrade to 12.04 without installing resolvconf, you can't install resolvconf
without giving it control over /etc/resolv.conf.  Now that resolvconf is
managing this file instead of NM, there really aren't good reasons to make
it immutable anyway, and admins just need to transition to the new behavior.

> (Also, would it make sense to expand the Release Notes paragraph on
> resolvconf to mention this sort of problem?  The current brief-mention-
> with-link-to-blog is pretty easy to miss [and in any case the blog
> doesn't currently mention the immutable-resolv.conf problem].)

It doesn't mention it because we didn't expect it to be a significant
problem.  And I think we should make it not a problem, which makes the
documentation moot...

-- 
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:
  Triaged
Status in “resolvconf” source package in Precise:
  Triaged
Status in “resolvconf” source package in Quantal:
  Triaged

Bug description:
  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