ifupdown conflicts with netbase both of which own /etc/init.d/networking

Bug #1023437 reported by Andy Whitcroft
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dpkg (Ubuntu)
Confirmed
Medium
Unassigned
ifupdown (Ubuntu)
Fix Released
High
Unassigned

Bug Description

root@agent57:~# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  cvs libapt-inst1.4 libcamel-1.2-23
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  ifupdown
Suggested packages:
  rdnssd
The following packages will be upgraded:
  ifupdown
1 upgraded, 0 newly installed, 0 to remove and 722 not upgraded.
743 not fully installed or removed.
Need to get 0 B/53.5 kB of archives.
After this operation, 19.5 kB of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 895051 files and directories currently installed.)
Preparing to replace ifupdown 0.7~beta2ubuntu8 (using .../ifupdown_0.7.1ubuntu1_i386.deb) ...
Unpacking replacement ifupdown ...
dpkg: error processing /var/cache/apt/archives/ifupdown_0.7.1ubuntu1_i386.deb (--unpack):
 trying to overwrite '/etc/init.d/networking', which is also in package netbase 5.0ubuntu1
No apport report written because MaxReports has already been reached
                                                                    Processing triggers for ureadahead ...
Errors were encountered while processing:
 /var/cache/apt/archives/ifupdown_0.7.1ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: ifupdown 0.7~beta2ubuntu8
ProcVersionSignature: Ubuntu 3.4.0-3.8extraspostinst201205291835-generic 3.4.0
Uname: Linux 3.4.0-3-generic i686
ApportVersion: 2.0.1-0ubuntu11
Architecture: i386
Date: Wed Jul 11 15:31:22 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
SourcePackage: ifupdown
UpgradeStatus: Upgraded to quantal on 2012-01-04 (188 days ago)

Revision history for this message
Andy Whitcroft (apw) wrote :
summary: - ifupdown conflicts with netcore both of which own /etc/init.d/networking
+ ifupdown conflicts with netbase both of which own /etc/init.d/networking
Revision history for this message
Stéphane Graber (stgraber) wrote :

I managed to reproduce here with a minimal 12.04 install manually upgrading (apt-get dist-upgrade) to quantal.

Just a few notes.
 - /etc/init.d/networking is a sysvinit script in netbase < 5.0
 - /etc/init.d/networking was dropped from netbase >= 5.0
 - /etc/init.d/networking was added to ifupdown >= 0.7.1
 - in ifupdown, /etc/init.d/networking is a symlink to /lib/init/upstart-job

ifupdown 0.7.1ubuntu1 declares:
Replaces: netbase (<< 5.0)
Breaks: netbase (<< 5.0)

Which should be enough to have dpkg cope with the upgrade. It's expected to do the following:
 - unpack new netbase
 - unpack new ifupdown
 - consider /etc/init.d/networking as now being part of ifupdown
 - configure netbase
 - configure ifupdown

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ifupdown - 0.7.1ubuntu2

---------------
ifupdown (0.7.1ubuntu2) quantal; urgency=low

  * Make /etc/init.d/networking a conffile even if it's a symlink.
    This should help dpkg do the right thing when moving the file from netbase
    over to ifupdown. This is a workaround for (LP: #1023437)
 -- Stephane Graber <email address hidden> Wed, 11 Jul 2012 11:51:57 -0400

Changed in ifupdown (Ubuntu):
status: New → Fix Released
Revision history for this message
Stéphane Graber (stgraber) wrote :

Opening a task against dpkg as this is definitely a weird corner case but one that I'd think dpkg should be able to handle without having to resort to explicitly marking the symlink as conffile to workaround the problem.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dpkg (Ubuntu):
status: New → Confirmed
Andy Whitcroft (apw)
Changed in ifupdown (Ubuntu):
importance: Undecided → High
Changed in dpkg (Ubuntu):
importance: Undecided → Medium
Revision history for this message
dino99 (9d9) wrote :

This is no more a supported version now

Changed in dpkg (Ubuntu):
status: Confirmed → Invalid
Changed in dpkg (Ubuntu):
status: Invalid → Confirmed
dino99 (9d9)
tags: removed: quantal
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.