auto eth1 duplicated in /etc/network/interfaces by upgrade

Bug #29654 reported by Sivan Greenberg
18
Affects Status Importance Assigned to Milestone
ifupdown (Ubuntu)
Fix Released
High
Scott James Remnant (Canonical)

Bug Description

The upgrade-from-hotplug.pl script makes no attempt to avoid duplicating "auto" lines ... oops

I always dist-upgrade when updating my dapper.

after the upgrade, this is how my interfaces file looked like:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
auto eth1

# The primary network interface
iface eth1 inet dhcp

auto eth1

iface ppp0 inet ppp
provider ppp0

----
'auth eth1' appeared twice in that file, after removing the second one, I could ifup eth1 again and have my network working again.

Revision history for this message
Sivan Greenberg (sivan) wrote :

this is what I got when trying to up network with the dupes:

sivan@ubuntu:~$ sudo ifup eth1
Internet Systems Consortium DHCP Client V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on LPF/eth1/00:0a:cd:0b:9c:4e
Sending on LPF/eth1/00:0a:cd:0b:9c:4e
Sending on Socket/fallback
Error : Temporary failure in name resolution
run-parts: /etc/network/if-up.d/ntpdate exited with return code 1

Revision history for this message
Sivan Greenberg (sivan) wrote :

using ifupdown ==0.6.7ubuntu5

Changed in ifupdown:
assignee: nobody → keybuk
Revision history for this message
Sivan Greenberg (sivan) wrote :

sorry, the correct error message:

/etc/network/interfaces:16: interface eth1 declared allow-auto twice
ifup: couldn't read interfaces file "/etc/network/interfaces"

summary: + The upgrade-from-hotplug.pl script makes no attempt to avoid duplicating
+ "auto" lines ... oops
Changed in ifupdown:
status: Unconfirmed → In Progress
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

This has now been fixed

Changed in ifupdown:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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