pop-os / beta

Pop!_OS Beta
358 stars 19 forks source link

network-manager dependency preventing upgrade after moving to 21.10 #238

Open IcedEagle opened 2 years ago

IcedEagle commented 2 years ago

How did you upgrade to 21.10? (Fresh install / Upgrade) Upgrade from 21.04

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

network-manager : Depends: libnm0 (= 1.30.0-1ubuntu3) but 1.32.12-0ubuntu1 is installed Breaks: ppp (>= 2.4.7-3~) but 2.4.9-1+1ubuntu1 is installed network-manager-pptp : Depends: ppp (< 2.4.7-3~) but 2.4.9-1+1ubuntu1 is installed

brian@brian-popos:~$ apt policy network-manager
network-manager:
  Installed: 1.30.0-1ubuntu3
  Candidate: 1.32.12-0ubuntu1
  Version table:
     1.32.12-0ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu impish/main amd64 Packages
 *** 1.30.0-1ubuntu3 100
        100 /var/lib/dpkg/status
brian@brian-popos:~$ apt policy libnm0
libnm0:
  Installed: 1.32.12-0ubuntu1
  Candidate: 1.32.12-0ubuntu1
  Version table:
 *** 1.32.12-0ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu impish/main amd64 Packages
        100 /var/lib/dpkg/status
brian@brian-popos:~$ apt policy ppp
ppp:
  Installed: 2.4.9-1+1ubuntu1
  Candidate: 2.4.9-1+1ubuntu1
  Version table:
 *** 2.4.9-1+1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu impish/main amd64 Packages
        100 /var/lib/dpkg/status
brian@brian-popos:~$ apt policy network-manager-pptp
network-manager-pptp:
  Installed: 1.2.8-3
  Candidate: 1.2.8-3build1
  Version table:
     1.2.8-3build1 500
        500 http://us.archive.ubuntu.com/ubuntu impish/main amd64 Packages
 *** 1.2.8-3 100
        100 /var/lib/dpkg/status

Issue/Bug Description: After running the command to upgrade, which appeared to be successful, I then restarted as the upgrade command instructed. Upon trying to update anything, I'm now met with dependency errors I'm not sure how to resolve.

Here is the list of commands

**brian@brian-popos:~$ sudo apt upgrade**
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 network-manager : Depends: libnm0 (= 1.30.0-1ubuntu3) but 1.32.12-0ubuntu1 is installed
                   Breaks: ppp (>= 2.4.7-3~) but 2.4.9-1+1ubuntu1 is installed
 network-manager-pptp : Depends: ppp (< 2.4.7-3~) but 2.4.9-1+1ubuntu1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
**brian@brian-popos:~$ sudo apt --fix-broken install**
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  g++-10 gir1.2-geocodeglib-1.0 libhandy-0.0-0 libpcre2-posix2 libpoppler111:i386 libsasl2-modules:i386
  libstdc++-10-dev libwacom-bin lz4
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  network-manager network-manager-pptp network-manager-pptp-gnome
Suggested packages:
  libteam-utils
The following packages will be upgraded:
  network-manager network-manager-pptp network-manager-pptp-gnome
3 upgraded, 0 newly installed, 0 to remove and 1129 not upgraded.
1 not fully installed or removed.
Need to get 0 B/2,408 kB of archives.
After this operation, 201 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: dependency problems prevent configuration of ppp:
 network-manager (1.30.0-1ubuntu3) breaks ppp (>= 2.4.7-3~) and is installed.
  Version of ppp to be configured is 2.4.9-1+1ubuntu1.

dpkg: error processing package ppp (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          E
rrors were encountered while processing:
 ppp
E: Sub-process /usr/bin/dpkg returned an error code (1)

I also ran dpkg --configure -a, and this is the output


brian@brian-popos:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of ppp:
 network-manager (1.30.0-1ubuntu3) breaks ppp (>= 2.4.7-3~) and is installed.
  Version of ppp to be configured is 2.4.9-1+1ubuntu1.

dpkg: error processing package ppp (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 ppp

Steps to reproduce (if you know): 1) Have Pop 21.04 up to date 2) Run command: sudo pop-upgrade release upgrade -f 3) Once command says it's successful, restart as instructed 4) Run sudo apt update, followed by dpkg --configure -a as the system instructed 5) dpkg failed due to dependency errors, and now my system is stuck in this state

Expected behavior: Once I restart, I can upgrade the system without issues.

Other Notes: The system About page still says I'm on 21.04, but I'd imagine that's because I wasn't able to fully update the system afterwards.

I found this older forum post describing similar behavior to what I'm seeing, but no definitive solution. Since this is a beta, I didn't want to get too far into experimenting with my system, to make sure it remains useful so it can be understood and fixed properly.

https://pop-planet.info/forums/threads/unable-to-update-upgrade-anything-please-help.1504/

https://www.reddit.com/r/pop_os/comments/pl1gst/after_updating_to_pop_os_2110_i_cannot_update_any/

effdotsh commented 2 years ago

I solved this for myself by running

sudo apt clean
sudo apt update -m
sudo dpkg --configure -a
sudo apt install -f
sudo apt dist-upgrade
sudo apt autoremove --purge
BobbyBeeblebrox commented 2 years ago

This worked for me:

sudo dpkg --force-depends -r ppp sudo dpkg --configure -a sudo apt update sudo apt --fix-broken install sudo apt dist-upgrade

thob commented 2 years ago

@BobbyBeeblebrox had to go thru it while updating to 21.10, Thanks for the recipe.