resolvconf fails to install/upgrade because of immutable /etc/resolv.conf

Bug #378844 reported by Amr El-Sharnoby on 2009-05-20
This bug affects 17 people
Affects Status Importance Assigned to Milestone
resolvconf (Ubuntu)

Bug Description

Binary package hint: resolvconf

Maybe this was caused by an immutable /etc/resolv.conf

$ lsattr /etc/resolv.conf
----i------------e- /etc/resolv.conf

I don't like that it get changed by network manager so I set it this way ..

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 1
NonfreeKernelModules: nvidia
Package: resolvconf 1.43ubuntu1
PackageArchitecture: all
SourcePackage: resolvconf
Title: package resolvconf 1.43ubuntu1 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.28-11-generic i686

Related branches

Changed in resolvconf (Ubuntu):
status: New → Confirmed
summary: - package resolvconf 1.43ubuntu1 failed to install/upgrade: subprocess
- post-installation script returned error exit status 1
+ resolvconf fails to install/upgrade because of immutable
+ /etc/resolv.conf
Simon Huerlimann (huerlisi) wrote :

First, resolvconf should not fail and block an update. Fix would be to check if /etc/resolv.conf is writable in package control scripts.

Second, I think a debconf notice should be used to tell users who have immutable resolv.conf that they probably don't want resolvconf installed. I know that debconf notices should be used sparsely, but I guess this would be a proper case: almost all users won't see it, and the other ones would be happy to know that they can safely remove this package.

Thomas Hood (jdthood) wrote :

The failure is correct.

If you don't want resolvconf to touch /etc/resolv.conf then answer "no" the linkify-resolvconf question.

Changed in resolvconf (Ubuntu):
status: Confirmed → Invalid
Thomas Hood (jdthood) on 2011-07-28
Changed in resolvconf (Ubuntu):
status: Invalid → New
Thomas Hood (jdthood) wrote :

Fixed in Debian resolvconf 1.59.

Changed in resolvconf (Ubuntu):
status: New → In Progress
Thomas Hood (jdthood) on 2011-12-01
Changed in resolvconf (Ubuntu):
status: In Progress → Fix Committed
Thomas Hood (jdthood) wrote :

A new Ubuntu resolvconf package has been prepared by the Debian maintainers.

I ask you to test this new package before we upload it to the Ubuntu repos.

Please install the resolvconf package from ppa:jdthood/resolvconf ( and let me know whether or not you have any problems with it.
Thomas Hood
Debian resolvconf maintainers
<email address hidden>

Launchpad Janitor (janitor) wrote :
Download full text (10.3 KiB)

This bug was fixed in the package resolvconf - 1.63ubuntu1

resolvconf (1.63ubuntu1) precise; urgency=low

  [ Thomas Hood ]
  * Debian fixed bugs (LP: #797339, #871058, #471975, #378844, #894417)
  * Differences from Debian:
    - /sbin/resolvconf:
      + Exit if /etc/resolv.conf is not a symlink
    - debian/rules:
      + Install upstart script rather than initscript (LP: #366967, #750423)
    - debian/{pre,post}inst
      + Migrate (to /run) from /var/run, not from /lib/init/rw.
      + [0706f28] Remove old Sys V init scripts and symlinks
  * Thanks to Sander van Grieken for his assistance with this release.

resolvconf (1.63) unstable; urgency=low

  [ Thomas Hood ]
  * [a83fce3] Depend on a later version of the initscripts package
  * [cfc8349] Use variable instead of hard-coded path for old run dir
    in maintainer scripts, to help shrink the Ubuntu diff.
  * [9921902] Update and improve resolvconf(8)
  * [719dc9b] Run update on boot (Closes: #651801, #651827)
  * [5fc985c] Don't trigger on reconfigure (Closes: #651803)

resolvconf (1.62) unstable; urgency=low

  [ Thomas Hood ]
  * [0352a85] postrm: On removal restore original resolv.conf if current
    (dynamic) resolv.conf has no content. (Closes: #644956)
    Thanks to Josep Lladonosa Capell.
  * [7cdfa73] Move logic details from initscript to /sbin/resolvconf;
    for this purpose add new options to /sbin/resolvconf:
    --enable-updates, --disable-updates, --updates-are-enabled,
  * [7cdfa73] Eliminate "-i" option supplied to update scripts and
    the code in /etc/resolvconf/update.d/libc that made use of this.

  [ Marco Nenciarini ]
  * [e175b76] Remove hardcoded path from resolvconf's invocation in
    maintainer scripts. Thanks to lintian

resolvconf (1.61) unstable; urgency=low

  * [cbb5105] list-records: Add comment re: extglob; speed up final loop
  * [4492943] Eliminate bashisms from /sbin/resolvconf. (Other scripts in this
    package still use bash, though, so this does not close wish #519364.)
    Thanks to Stefan Monnier
  * [63da54b] update.d/libc: Only run-parts update-libc.d/ if the latter exists.
    (Closes: #642965)

resolvconf (1.60) unstable; urgency=low

  [ Marco Nenciarini ]
  * [c30024e] Switch vcs fields to git
  * [4041409] Add debian/gbp.conf to make easy the usage of

  [ Thomas Hood ]
  * [18e2fac] Update es.po thanks to Javier Fernández-Sanguino
    (Closes: #642360)
  * [18e2fac] Include resolv.conf.d/base information in
    resolv.conf *after* dynamic information, rather than before
    (Closes: #642222)

resolvconf (1.59) unstable; urgency=low

  * dhclient-enter-hooks.d/resolvconf: Add support for dhclient
    DHCPv6 (Closes: #635470)
  * postinst: Fail with message if /etc/resolv.conf is immutable
    (Closes: #635775)
  * Mention in resolvconf(8) that /etc/default/resolvconf has
    to be created if it is to be used to set resolvconf environment
    variables (Closes: #633014)
  * Drop outdated id.po

resolvconf (1.58) unstable; urgency=low

  [ Thomas Hood ]
  * Update README
  * Update debconf template translations:
    * da.po thanks to Joe Dalton (Closes: #630241)

Changed in resolvconf (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers