network-manager gets uninstalled on apt full-upgrade

Bug #2059651 reported by Daniel van Vugt
52
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Ubuntu
Fix Released
High
Unassigned

Bug Description

network-manager gets uninstalled on apt full-upgrade

I've tried two Noble systems this evening and both got their network-manager packages removed. So wifi is gone.

Tags: noble
Changed in ubuntu-meta (Ubuntu):
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in network-manager (Ubuntu):
status: New → Confirmed
Changed in ubuntu-meta (Ubuntu):
status: New → Confirmed
Revision history for this message
Doug Smythies (dsmythies) wrote (last edit ):

After the extensive upgrades of today no network. As per this bug report, network-manager seems to be gone. In my case this is a 24.04 Ubuntu Desktop QEMU/KVM VM running on my main Debian server host.

In my case the command was "sudo apt dist-upgrade"

Revision history for this message
Roman (vient1) wrote (last edit ):

Guess it uninstalls network-manager to install new version but new version can't be installed because it depends on libnetplan1 which is missing from repos.

https://packages.ubuntu.com/noble/network-manager currently shows
[depends on] libnetplan1 (>= 0.106)
    Package not available

You can't simply install previous version 1.45.90-1ubuntu1, which still shows in `apt show network-manager`, because its dependency libnm0 of the same version is already missing from repos.

Revision history for this message
Roman (vient1) wrote (last edit ):

Temporary bypass:
# wget http://mirrors.kernel.org/ubuntu/pool/main/n/network-manager/network-manager_1.45.90-1ubuntu1_amd64.deb
# dpkg --force-all -i network-manager_1.45.90-1ubuntu1_amd64.deb

dpkg output on my system:
Preparing to unpack network-manager_1.45.90-1ubuntu1_amd64.deb ...
Unpacking network-manager (1.45.90-1ubuntu1) over (1.45.90-1ubuntu1) ...
dpkg: network-manager: dependency problems, but configuring anyway as you requested:
 network-manager depends on libnm0 (= 1.45.90-1ubuntu1); however:
  Version of libnm0:amd64 on system is 1.45.90-1ubuntu3.
Setting up network-manager (1.45.90-1ubuntu1) ...
...

After that everything works fine.

Did the same with network-manager-openvpn and network-manager-openvpn-gnome to bring back VPN, also works.

Btw, after full-upgrade I have a ton (114) of "not gonna be installed" packages in apt output because some libs are missing from repos, seems something went wrong when uploading new packages.

Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :

Please refer to https://lists.ubuntu.com/archives/ubuntu-devel/2024-March/042954.html for more information about the current state of upgrades.

Revision history for this message
Roman (vient1) wrote :

Yeah, I guess making a full-upgrade instead of upgrade was a bad idea :)

Revision history for this message
hiweedmandriva (fedoraelementaryos) wrote (last edit ):

After run below commands, network-manager is gone

    sudo apt -y update --fix-missing
    sudo apt -y full-upgrade
    sudo apt -y dist-upgrade
    sudo apt -y --purge autoremove
    sudo apt -y autoclean

To fix this, have to installed these deb files manually

    libndp0_1.8-1fakesync1_amd64.deb
    libnm0_1.45.90-1ubuntu3_amd64.deb
    libteamdctl0_1.31-1build2_amd64.deb
    network-manager_1.45.90-1ubuntu1_amd64.deb

Revision history for this message
Fred (eldmannen+launchpad) wrote :

To get my network connectivity restored I had to run:

    sudo dhcpcd

The repository have been fixed so I was able to install network-manager back again:

    sudo apt install network-manager

Revision history for this message
Doug Smythies (dsmythies) wrote :

The "sudo dhcpcd" command worked to get my network back. I had to do another update/upgrade cycle before network-manager would re-install.

Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):

Yes this bug no longer happens, confirmed on two machines. But there are other issues with many hundreds of packages being released so please log new bugs as you find them.

no longer affects: ubuntu-meta (Ubuntu)
affects: network-manager (Ubuntu) → ubuntu
Changed in ubuntu:
status: Confirmed → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

AFAICS the new issue is that gnome-shell and gdm3 get uninstalled on apt full-upgrade. And so your system will never boot to a login screen.

I'd suggest waiting a few days for the archive to catch up. Also wait until there are new working images in https://cdimage.ubuntu.com/daily-live/ where the ISOs are not still dated 2024-03-25 or earlier.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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