[Bug 2113919] [NEW] unable to upgarade OS to 24.04
Harpreet Kaur Gill
2113919 at bugs.launchpad.net
Wed Jun 11 07:13:51 UTC 2025
Public bug reported:
An unresolvable problem occurred while calculating the upgrade.
This was likely caused by:
* Unofficial software packages not provided by Ubuntu
Please use the tool 'ppa-purge' from the ppa-purge
package to remove software from a Launchpad PPA and
try the upgrade again.
If none of this applies, then please report this bug using the command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal. If you want to investigate this yourself the log files in '/var/log/dist-upgrade' will contain details about the upgrade. Specifically, look at 'main.log' and 'apt.log'.
------
Tried running following script , it failed too:
#!/bin/bash
echo "๐ Checking for running apt processes..."
if pgrep -x apt || pgrep -x apt-get || pgrep -x dpkg; then
echo "โ APT is running. Please wait or kill the process manually."
ps -ef | grep -E "apt|dpkg" | grep -v grep
exit 1
fi
echo "๐๏ธ Backing up PPA lists..."
sudo mkdir -p /etc/apt/sources.list.d.bak
sudo cp /etc/apt/sources.list.d/*.list /etc/apt/sources.list.d.bak/
echo "๐ Disabling third-party PPAs..."
for f in /etc/apt/sources.list.d/*.list; do
echo "# Disabled for upgrade" | cat - "$f" > temp && mv temp "$f"
done
echo "๐งน Cleaning system..."
sudo apt clean
sudo apt autoremove -y
sudo rm -f /var/lib/apt/lists/lock
sudo rm -f /var/lib/dpkg/lock
sudo rm -f /var/cache/apt/archives/lock
echo "๐ Fixing broken or held packages..."
sudo dpkg --configure -a
sudo apt update
sudo apt --fix-broken install -y
echo "๐ฆ Full system upgrade check..."
sudo apt full-upgrade -y
echo "๐ Starting upgrade to Ubuntu 24.04..."
sudo do-release-upgrade
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubuntu-release-upgrader-core 1:22.04.20
ProcVersionSignature: Ubuntu 6.8.0-60.63~22.04.1-generic 6.8.12
Uname: Linux 6.8.0-60-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.8
Architecture: amd64
CasperMD5CheckResult: pass
CrashDB: ubuntu
CrashReports:
600:117:124:37:2025-06-07 19:25:11.234609169 +0530:2025-06-07 18:55:29.862292599 +0530:/var/crash/_usr_bin_update-manager.1000.uploaded
664:1000:124:0:2025-06-07 19:25:09.207585425 +0530:2025-06-07 19:25:09.207585425 +0530:/var/crash/_usr_bin_update-manager.1000.upload
640:1000:124:454132:2025-06-07 19:25:04.489539861 +0530:2025-06-07 19:25:05.489539861 +0530:/var/crash/_usr_bin_update-manager.1000.crash
CurrentDesktop: ubuntu:GNOME
Date: Wed Jun 11 12:34:08 2025
InstallationDate: Installed on 2024-03-20 (447 days ago)
InstallationMedia: Ubuntu 22.04.4 LTS "Jammy Jellyfish" - Release amd64 (20240220)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
UpgradeStatus: Upgraded to jammy on 2025-06-11 (0 days ago)
VarLogDistupgradeTermlog:
** Affects: ubuntu-release-upgrader (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug dist-upgrade jammy third-party-packages
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/2113919
Title:
unable to upgarade OS to 24.04
Status in ubuntu-release-upgrader package in Ubuntu:
New
Bug description:
An unresolvable problem occurred while calculating the upgrade.
This was likely caused by:
* Unofficial software packages not provided by Ubuntu
Please use the tool 'ppa-purge' from the ppa-purge
package to remove software from a Launchpad PPA and
try the upgrade again.
If none of this applies, then please report this bug using the command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal. If you want to investigate this yourself the log files in '/var/log/dist-upgrade' will contain details about the upgrade. Specifically, look at 'main.log' and 'apt.log'.
------
Tried running following script , it failed too:
#!/bin/bash
echo "๐ Checking for running apt processes..."
if pgrep -x apt || pgrep -x apt-get || pgrep -x dpkg; then
echo "โ APT is running. Please wait or kill the process manually."
ps -ef | grep -E "apt|dpkg" | grep -v grep
exit 1
fi
echo "๐๏ธ Backing up PPA lists..."
sudo mkdir -p /etc/apt/sources.list.d.bak
sudo cp /etc/apt/sources.list.d/*.list /etc/apt/sources.list.d.bak/
echo "๐ Disabling third-party PPAs..."
for f in /etc/apt/sources.list.d/*.list; do
echo "# Disabled for upgrade" | cat - "$f" > temp && mv temp "$f"
done
echo "๐งน Cleaning system..."
sudo apt clean
sudo apt autoremove -y
sudo rm -f /var/lib/apt/lists/lock
sudo rm -f /var/lib/dpkg/lock
sudo rm -f /var/cache/apt/archives/lock
echo "๐ Fixing broken or held packages..."
sudo dpkg --configure -a
sudo apt update
sudo apt --fix-broken install -y
echo "๐ฆ Full system upgrade check..."
sudo apt full-upgrade -y
echo "๐ Starting upgrade to Ubuntu 24.04..."
sudo do-release-upgrade
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubuntu-release-upgrader-core 1:22.04.20
ProcVersionSignature: Ubuntu 6.8.0-60.63~22.04.1-generic 6.8.12
Uname: Linux 6.8.0-60-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.8
Architecture: amd64
CasperMD5CheckResult: pass
CrashDB: ubuntu
CrashReports:
600:117:124:37:2025-06-07 19:25:11.234609169 +0530:2025-06-07 18:55:29.862292599 +0530:/var/crash/_usr_bin_update-manager.1000.uploaded
664:1000:124:0:2025-06-07 19:25:09.207585425 +0530:2025-06-07 19:25:09.207585425 +0530:/var/crash/_usr_bin_update-manager.1000.upload
640:1000:124:454132:2025-06-07 19:25:04.489539861 +0530:2025-06-07 19:25:05.489539861 +0530:/var/crash/_usr_bin_update-manager.1000.crash
CurrentDesktop: ubuntu:GNOME
Date: Wed Jun 11 12:34:08 2025
InstallationDate: Installed on 2024-03-20 (447 days ago)
InstallationMedia: Ubuntu 22.04.4 LTS "Jammy Jellyfish" - Release amd64 (20240220)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
UpgradeStatus: Upgraded to jammy on 2025-06-11 (0 days ago)
VarLogDistupgradeTermlog:
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2113919/+subscriptions
More information about the foundations-bugs
mailing list