F5F Stay Refreshed Software Operating Systems Upgrade from Ubuntu Server 18.04 to 20.04. Packages are already installed.

Upgrade from Ubuntu Server 18.04 to 20.04. Packages are already installed.

Upgrade from Ubuntu Server 18.04 to 20.04. Packages are already installed.

N
Niclin13
Member
193
06-23-2025, 01:02 PM
#1
I'm stuck without any guidance. I moved from 18.04 to 20.04 LTS without problems. Then, when trying to install new packages, I encounter an error: lshallo@LINUX-SRV:~$ sudo apt install ffmpeg Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This might indicate that you've asked for an impossible condition or you're using the unstable distribution, as some required packages haven't been created or moved out of Incoming. The following details could help resolve this: The following packages are missing dependencies: ffmpeg : Depends: libavdevice58 (= 7:4.2.4-1ubuntu0.1) but it won't be installed. E: Unable to fix issues, you have broken packages. Steps I've tried: lshallo@LINUX-SRV:~$ sudo apt clean lshallo@LINUX-SRV:~$ sudo apt update && sudo apt upgrade Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease Hit:2 http://de.archive.ubuntu.com/ubuntu focal InRelease Hit:3 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:4 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:5 https://pkgs.tailscale.com/stable/ubuntu focal InRelease Hit:6 https://deb.nodesource.com/node_14.x focal InRelease Fetched 3,502 B in 1s (3,265 B/s) Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. lshallo@LINUX-SRV:~$ sudo apt dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. lshallo@LINUX-SRV:~$ sudo dpkg --configure -a Some more info: lshallo@LINUX-SRV:~$ cat /etc/apt/sources.list # ... (rest of list) ...) N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu team. Also, please note that software in universe WILL NOT receive any review or updates from the Ubuntu security team. ... # Software from this repo may not have been thoroughly tested, though it includes newer versions of some apps for extra features.) Also, remember that multiverse software won't get reviews or updates from Ubuntu security, and backports won't either. Uncomment the lines to add software from Canonical's partner repo if needed. # Software is not part of Ubuntu and is offered by Canonical as a service. # N.B. Ubuntu security won't review or update multiverse packages extensively. # Please confirm your rights to use this software. # Note that multiverse packages may lack extensive testing compared to the main release, but they include newer app versions for added functionality.)
N
Niclin13
06-23-2025, 01:02 PM #1

I'm stuck without any guidance. I moved from 18.04 to 20.04 LTS without problems. Then, when trying to install new packages, I encounter an error: lshallo@LINUX-SRV:~$ sudo apt install ffmpeg Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This might indicate that you've asked for an impossible condition or you're using the unstable distribution, as some required packages haven't been created or moved out of Incoming. The following details could help resolve this: The following packages are missing dependencies: ffmpeg : Depends: libavdevice58 (= 7:4.2.4-1ubuntu0.1) but it won't be installed. E: Unable to fix issues, you have broken packages. Steps I've tried: lshallo@LINUX-SRV:~$ sudo apt clean lshallo@LINUX-SRV:~$ sudo apt update && sudo apt upgrade Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease Hit:2 http://de.archive.ubuntu.com/ubuntu focal InRelease Hit:3 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:4 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:5 https://pkgs.tailscale.com/stable/ubuntu focal InRelease Hit:6 https://deb.nodesource.com/node_14.x focal InRelease Fetched 3,502 B in 1s (3,265 B/s) Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. lshallo@LINUX-SRV:~$ sudo apt dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. lshallo@LINUX-SRV:~$ sudo dpkg --configure -a Some more info: lshallo@LINUX-SRV:~$ cat /etc/apt/sources.list # ... (rest of list) ...) N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu team. Also, please note that software in universe WILL NOT receive any review or updates from the Ubuntu security team. ... # Software from this repo may not have been thoroughly tested, though it includes newer versions of some apps for extra features.) Also, remember that multiverse software won't get reviews or updates from Ubuntu security, and backports won't either. Uncomment the lines to add software from Canonical's partner repo if needed. # Software is not part of Ubuntu and is offered by Canonical as a service. # N.B. Ubuntu security won't review or update multiverse packages extensively. # Please confirm your rights to use this software. # Note that multiverse packages may lack extensive testing compared to the main release, but they include newer app versions for added functionality.)

G
garm1606
Member
64
06-24-2025, 11:58 PM
#2
The upgrade was handled with do-release-upgrade or similar manual methods. Did you attempt apt install --fix-broken? Was there a chance you installed the dependency package directly?
G
garm1606
06-24-2025, 11:58 PM #2

The upgrade was handled with do-release-upgrade or similar manual methods. Did you attempt apt install --fix-broken? Was there a chance you installed the dependency package directly?

P
PheonixMMC
Member
174
07-02-2025, 06:47 AM
#3
I completed the release update. The apt install --fix-broken command was executed several times. Installing dependencies often leads to failures, creating a chain reaction where each package must be installed individually. This also flags all dependencies as manually added, which isn't ideal for cleaning up unused software. My main issue is that broken packages aren't displayed, leaving no clear direction for troubleshooting.
P
PheonixMMC
07-02-2025, 06:47 AM #3

I completed the release update. The apt install --fix-broken command was executed several times. Installing dependencies often leads to failures, creating a chain reaction where each package must be installed individually. This also flags all dependencies as manually added, which isn't ideal for cleaning up unused software. My main issue is that broken packages aren't displayed, leaving no clear direction for troubleshooting.

F
FionnMacu
Member
147
07-19-2025, 11:26 AM
#4
I discovered a discussion on askubuntu about this same problem. You can retrieve the actual packages using dpkg --get-selections | grep hold. From there, you should be able to install each package with sudo apt install <package>. Some users also reported success with sudo apt auto-remove, so that’s worth trying. If it doesn’t work, share the output of dpkg --get-selections | grep hold and we can use it as a starting point.
F
FionnMacu
07-19-2025, 11:26 AM #4

I discovered a discussion on askubuntu about this same problem. You can retrieve the actual packages using dpkg --get-selections | grep hold. From there, you should be able to install each package with sudo apt install <package>. Some users also reported success with sudo apt auto-remove, so that’s worth trying. If it doesn’t work, share the output of dpkg --get-selections | grep hold and we can use it as a starting point.

S
Sebluigi
Senior Member
727
07-19-2025, 11:51 AM
#5
Checked the available options. No significant updates found. Proceeding with current packages.
S
Sebluigi
07-19-2025, 11:51 AM #5

Checked the available options. No significant updates found. Proceeding with current packages.