Recent update broke dhcp

Bug #643100 reported by Till Klampaeckel
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Expired
Low
Unassigned

Bug Description

With the last Ubuntu update dhcp(3)-client got uninstalled on my system.

So when the network-manager tried to connected I read the following in /var/log/syslog:

Sep 19 18:34:51 till-laptop NetworkManager: <WARN> dhclient_start(): /sbin/dhclient does not exist.

So I reinstalled dhcp3-client (using aptitude install dhcp3-client) and now I read the following:

Sep 19 23:48:35 till-laptop dhclient: Usage: dhclient [-1dqrx] [-nw] [-p <port>] [-s server]
Sep 19 23:48:35 till-laptop dhclient: [-cf config-file] [-lf lease-file][-pf pid-file] [-e VAR=val]
Sep 19 23:48:35 till-laptop dhclient: [-sf script-file] [interface]
Sep 19 23:50:58 till-laptop dhclient: Internet Systems Consortium DHCP Client V3.1.3

The workaround is to open a terminal and type: sudo dhclient3 and everything seems to work. The only downside is that the network manager doesn't seem to recognize this. So it keeps spinning up there.

You're only affected if you try to use dhcp. If you hardcode network settings in the connection profile (in network-manager), it works like expected.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: dhcp3-client 3.1.3-2ubuntu3
ProcVersionSignature: Ubuntu 2.6.32-25.43-generic 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic x86_64
Architecture: amd64
Date: Sun Sep 19 23:58:43 2010
KernLog:

ProcCmdLine: root=UUID=24AE5D0FAE5CDB3E loop=/ubuntu/disks/root.disk ro quiet splash
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: dhcp3

Revision history for this message
Till Klampaeckel (till-php) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

Do you still have your upgrade logs?

chuck

Changed in dhcp3 (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Till Klampaeckel (till-php) wrote :

I'm not sure - if you tell me where they are located, I can look into them.

Revision history for this message
Till Klampaeckel (till-php) wrote :

Adding this link as sort of related:
http://pugio.net/2010/08/fix-dhcp-problems-in-networkmager.html

The only problem is that I can't seem install that "isc-dhcp-client" package.

Revision history for this message
C de-Avillez (hggdh2) wrote :

You should have the logs under /var/log/apt/ -- if you have just updated, it should be the current term.log. Also, it would be insteresting to look at the history.log.

Revision history for this message
Till Klampaeckel (till-php) wrote :

Thanks!

It's in history.log:

Here are the packages - isc-dhcp-client and isc-dhcp-common. And I can't reinstall them either.

Start-Date: 2010-09-18 16:25:18
Remove: linux-image-2.6.31-21-generic (2.6.31-21.59), riak (0.11.0-1344), ubuntu-minimal (1.197), thunderbird-3.0 (3.0.3~hg20100217r4732+nobinonly-0ubuntu1~umd1~karmic), isc-dhcp-client (4.1.1-1ubuntu1~nmt1~karmic)
End-Date: 2010-09-18 16:25:46

Start-Date: 2010-09-18 16:28:34
Remove: isc-dhcp-common (4.1.1-1ubuntu1~nmt1~karmic)
End-Date: 2010-09-18 16:28:35

[ Sort of related, I have no idea why my email client was uninstalled either, but that's a different story. ]

Revision history for this message
C de-Avillez (hggdh2) wrote :

Thank you. Now, there are some problems on these DHCP packages:

(1) they are for Kamic (or so the version string says);
(2) they are non-official packages (isc-dhcp-* is not provided by us)

How did you get them? This, unfortunately, does not seem to be a bug (you are using non-official packages).

Revision history for this message
Till Klampaeckel (till-php) wrote :

I started off with 9.04, went to 9.10 (karmic) and then on to 10.04 (lucid).

I never had to I install or reinstall dhcp, ever.

I just recently had to check into this because since the package was removed, dhcp didn't work at all anymore. And even if I use dhcp(3)-client which (I think) is an official package, the integration with the network-manager seems broken - see error message in the initial post.

Revision history for this message
PaulK (pkretek) wrote :

I have the netbook edition of 10.04 and this is also broken on my installation. It is a mixed ipv6/ipv4 network.

If you look closely in the error log above, dhcp fails, because NetworkManager adds an unknown parameter "-4". If you run "dhclient3 -4" on the command line, you will get the same error, so it seems that NetworkManager requires the isc version of dhcp, which strangely was available few months ago in the repository (will check later from where exactly). A fix would be to stop NetworkManager from adding -4 to the command line, or use the proper dhcp version.

Revision history for this message
Till Klampaeckel (till-php) wrote :

With some help in #ubuntu@freenode:

I think my incompatibility comes from the network-manager:

till@till-laptop:~$ sudo apt-cache policy network-manager
network-manager:
  Installed: 0.8-0ubuntu5~nmt5~karmic
  Candidate: 0.8-0ubuntu5~nmt5~karmic
  Version table:
 *** 0.8-0ubuntu5~nmt5~karmic 0
        100 /var/lib/dpkg/status
     0.8-0ubuntu3 0
        500 http://ubuntu.intergenia.de/ubuntu/ lucid/main Packages

I updated my system from "karmic" to "lucid" back in April. So I'm not sure why this is either still installed or was installed again.

On IRC people said that network-manager could have "updated" to karmic, if it's the same version number as the lucid release. I'm just putting this on here - no comment.

Revision history for this message
C de-Avillez (hggdh2) wrote :

Till, this is weird -- it looks more and more that either you did not make a successful upgrade to Lucid, or that you have some incorrect package repositories in place.

The official network-manager for Lucid is 0.8-0ubuntu3 -- you are running 0.8-0ubuntu5~nmt5~karmic! Both wrong Ubuntu version and wrong maintenance level... and, it sounds, yours is not compatible with Lucid's dhclient3.

I have no idea where you got it... can you please attach here your /etc/apt/sources.list?

Revision history for this message
Till Klampaeckel (till-php) wrote :

This is my complete /etc/apt/sources.list:

# deb http://download.openvz.org/debian-systs lenny openvz

deb http://ubuntu.intergenia.de/ubuntu/ lucid main restricted
deb-src http://ubuntu.intergenia.de/ubuntu/ lucid restricted main multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ubuntu.intergenia.de/ubuntu/ lucid-updates main restricted
deb-src http://ubuntu.intergenia.de/ubuntu/ lucid-updates restricted main multiverse universe #Added by software-properties

deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu lucid main

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://ubuntu.intergenia.de/ubuntu/ lucid universe
deb http://ubuntu.intergenia.de/ubuntu/ lucid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ubuntu.intergenia.de/ubuntu/ lucid multiverse
deb http://ubuntu.intergenia.de/ubuntu/ lucid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ubuntu.intergenia.de/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://ubuntu.intergenia.de/ubuntu/ lucid-backports main restricted universe multiverse #Added by software-properties

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu/ lucid-security restricted main multiverse universe
deb-src http://security.ubuntu.com/ubuntu/ lucid-security restricted main multiverse universe #Added by software-properties
deb http://ubuntu.intergenia.de/ubuntu/ lucid-proposed restricted main multiverse universe
deb-src http://ubuntu.intergenia.de/ubuntu/ lucid-proposed restricted main multiverse universe #Added by software-properties

Revision history for this message
C de-Avillez (hggdh2) wrote :

Yes, I think your network-manager is a left-over from your Karmic days -- you installed it from an external repository (probably a PPA), but...
* it has a greater version than current Lucid
* it is most probably not compatible with Lucid

This goes with the territory, when using non-official repositories.

One final way to be sure is to run 'apt-cache' against it:

apt-cache policy network-manager

And you should see no repositories set for it.

The best you can do is downgrade it to current lucid. It should be easy, but I have no idea of what else you have still from Karmic.

Revision history for this message
Till Klampaeckel (till-php) wrote :

As I said, not aware of setting up any external repositories to install the network-manager. Initially, I had 9.04, went to Karmic and recently to Lucid. I always used the software-manager to run upgrades, no other external repositories involved. I don't know why I would install the network-manager from anywhere else.

I can't run any command right now, because I moved on to a fresh install with a new HDD.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Till, do you have files in /etc/apt/sources.list.d? This is likely where the packages sources would come from.

This bug comes from the fact that at some point (or maybe you still do) packages were installed from the ~network-manager team trunk PPA. The issue is in network-manager, not dhcp3, so I'm reassigning it as such.

As for a quick fix, if you're on lucid try to do the following:

sudo apt-get install network-manager=0.8-0ubuntu3 libnm-glib2=0.8-0ubuntu3 libnm-util1=0.8-0ubuntu3 network-manager-applet=0.8-0ubuntu3

This should take care of downgrading the network-manager packages to the correct versions (which don't require isc-dhcp (which should have been available in the ppa stated above though)).

You will likely also want to run 'sudo apt-get autoclean' to make sure your package cache contains the right things -- 0.8-0ubuntu5~nmt5~karmic should then disappear from the output of apt-cache policy, but you will still need to make sure the ~network-manager/trunk ppa isn't listed in sources.list or files under sources.list.d/.

affects: dhcp3 (Ubuntu) → network-manager (Ubuntu)
tags: added: nm-trunk
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for network-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in network-manager (Ubuntu):
status: Incomplete → Expired
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.