Comment 7 for bug 1489154

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

This isn't a bug -- we're blocking packages in wily-proposed specifically because they can be slightly broken, and the tests that failed and currently block promotion of the package are meant to do just that -- block things that may be a little buggy. From there, partial upgrades make things even worse, since you may be missing important part of underlying libraries.

IN this case, a partial upgrade of NM is obviously slightly wrong. I don't know how you got to that state, but my guess is that you have the proposed repository enabled, something that is explicitly strongly discouraged on wily unless you really know what you're doing. I believe dino99 exposes it quite well -- partial upgrades would break things, and the packages have remained in proposed for that reason (regardless of block-proposed, which wouldn't stop you in getting out of your way to upgrade the packages manually).

I've just done an upgrade using wily-proposed here, of network-manager, and it more or less works appropriately when all the packages are installed.

For reference, the way to upgrade NetworkManager is the following:

sudo apt-get install -t wily-proposed network-manager libnm0 libnm-glib4 libnm-util2 gir1.2-networkmanager-1.0

network-manager-gnome (nm-applet) and the libnm-gtk* libraries *do not* always need to follow, they should (and appear to) still work just fine.

In the same vein, to downgrade back to network-manager versions that are in wily-release, first check the version available via 'apt-cache policy network-manager' from wily/main:

network-manager:
  Installed: 1.0.4-0ubuntu3
  Candidate: 1.0.4-0ubuntu3
  Version table:
 *** 1.0.4-0ubuntu3 0
        100 /var/lib/dpkg/status
     1.0.4-0ubuntu2 0
         99 http://ca.archive.ubuntu.com/ubuntu/ wily-proposed/main amd64 Packages
     0.9.10.0-4ubuntu23 0
        500 http://ca.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages

(from my own system right now) the value for wily/main is 0.9.10.0-4ubuntu23.

sudo apt-get install network-manager=0.9.10.0-4ubuntu23 libnm0=0.9.10.0-4ubuntu23 libnm-glib4=0.9.10.0-4ubuntu23 libnm-util2=0.9.10.0-4ubuntu23 gir1.2-networkmanager-1.0=0.9.10.0-4ubuntu23

Here to downgrade back, I also needed to add 'network-manager-dbg- libnm0-' to the above line, because for this particular upgrade, NM 1.0 adds a new libnm0 package, and I also had network-manager-dbg installed. This will force them to be removed.