ubuntu upgrade failure 20.04 to 22.04

Bug #1992708 reported by adi sis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

failure upgrade, not sure about the cause

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ubuntu-release-upgrader-core 1:20.04.39
ProcVersionSignature: Ubuntu 5.15.0-50.56~20.04.1-generic 5.15.60
Uname: Linux 5.15.0-50-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.24
Architecture: amd64
CasperMD5CheckResult: skip
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Thu Oct 13 09:46:13 2022
InstallationDate: Installed on 2020-06-19 (845 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
UpgradeStatus: Upgraded to focal on 2022-10-13 (0 days ago)
mtime.conffile..etc.update-manager.release-upgrades: 2022-10-05T08:56:49.312274

Revision history for this message
adi sis (adisis23) wrote :
Revision history for this message
Nick Rosbrook (enr0n) wrote :

Reviewing the files from your upgrade attempt, you have installed packages from the deadsnakes PPA. Some of the packages installed are newer than those in the official archive, which is keeping some python packages installed which then prevents the upgrade from being calculated. Please try using the ppa-purge tool to remove packages installed from ppa:deadsnakes/ppa. After that you can try upgrading again and if it still fails open a new bug report. Thanks and good luck!

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Invalid
tags: added: deadsnakes-ppa
Revision history for this message
adi sis (adisis23) wrote : Re: [Bug 1992708] Re: ubuntu upgrade failure 20.04 to 22.04
Download full text (4.1 KiB)

I have no luck with sudo ppa-purge ppa:deadsnakes/ppaLooks like OK
with sudo add-apt-repository --remove ppa:deadsnakes/ppaBut, still got
problem when sudo do-release-upgrade

~$ sudo add-apt-repository --remove ppa:deadsnakes/ppa This PPA
contains more recent Python versions packaged for Ubuntu.
Disclaimer: there's no guarantee of timely updates in case of security
problems or other issues. If you want to use them in a security-or-
otherwise-critical environment (say, on a production server), you do so
at your own risk.
Update Note===========Please use this repository instead of
ppa:fkrull/deadsnakes.
Reporting Issues================
Issues can be reported in the master issue tracker at:
https://github.com/deadsnakes/issues/issues
Supported Ubuntu and Python
Versions====================================
- Ubuntu 18.04 (bionic) Python2.3 - Python 2.6, Python 3.1 - Python
3.5, Python3.7 - Python3.11- Ubuntu 20.04 (focal) Python3.5 -
Python3.7, Python3.9 - Python3.11- Ubuntu 22.04 (jammy) Python3.7 -
Python3.9, Python3.11- Note: Python2.7 (all), Python 3.6 (bionic),
Python 3.8 (focal), Python 3.10 (jammy) are not provided by deadsnakes
as upstream ubuntu provides those packages.
Why some packages aren't built:- Note: for focal, older python versions
require libssl<1.1 so they are not currently built- Note: for jammy,
older python versions requre libssl<3 so they are not currently built-
If you need these, reach out to asottile to set up a private ppa
The packages may also work on other versions of Ubuntu or Debian, but
that is not tested or supported.
Packages========
The packages provided here are loosely based on the debian upstream
packages with some modifications to make them more usable as non-
default pythons and on ubuntu. As such, the packages follow debian's
patterns and often do not include a full python distribution with just
`apt install python#.#`. Here is a list of packages that may be useful
along with the default install:
- `python#.#-dev`: includes development headers for building C
extensions- `python#.#-venv`: provides the standard library `venv`
module- `python#.#-distutils`: provides the standard library
`distutils` module- `python#.#-lib2to3`: provides the `2to3-#.#`
utility as well as the standard library `lib2to3` module- `python#.#-
gdbm`: provides the standard library `dbm.gnu` module- `python#.#-tk`:
provides the standard library `tkinter` module
Third-Party Python Modules==========================
Python modules in the official Ubuntu repositories are packaged to work
with the Python interpreters from the official repositories.
Accordingly, they generally won't work with the Python interpreters
from this PPA. As an exception, pure-Python modules for Python 3 will
work, but any compiled extension modules won't.
To install 3rd-party Python modules, you should use the common Python
packaging tools. For an introduction into the Python packaging
ecosystem and its tools, refer to the Python Packaging User Guide:
https://packaging.python.org/installing/
Sources=======The package sources are available at:
https://github.com/deadsnakes/
Nightly Builds==============
For nightly builds, see ppa:deadsnakes/nightly
https://lau...

Read more...

Revision history for this message
Nick Rosbrook (enr0n) wrote :

What happens when you run ppa-purge ppa:deadsnakes/ppa?

`apt-add-repository --remove` only removes the PPA sources, it does not remove packages that were installed from that PPA. In your case, you need to remove the python packages that were installed from the deadsnakes PPA. The ppa-purge tool is meant for that.

Revision history for this message
adi sis (adisis23) wrote :
Download full text (4.5 KiB)

after reboot,system ask to upgrade many modules,will update you again
after finish all modules upgrade.
rgds
On Thu, 2022-10-13 at 21:22 +0700, Adi Siswanto wrote:
> I have no luck with sudo ppa-purge ppa:deadsnakes/ppaLooks like OK
> with sudo add-apt-repository --remove ppa:deadsnakes/ppaBut, still
> got problem when sudo do-release-upgrade
>
> ~$ sudo add-apt-repository --remove ppa:deadsnakes/ppa This PPA
> contains more recent Python versions packaged for Ubuntu.
> Disclaimer: there's no guarantee of timely updates in case of
> security problems or other issues. If you want to use them in a
> security-or-otherwise-critical environment (say, on a production
> server), you do so at your own risk.
> Update Note===========Please use this repository instead of
> ppa:fkrull/deadsnakes.
> Reporting Issues================
> Issues can be reported in the master issue tracker at:
> https://github.com/deadsnakes/issues/issues
> Supported Ubuntu and Python
> Versions====================================
> - Ubuntu 18.04 (bionic) Python2.3 - Python 2.6, Python 3.1 - Python
> 3.5, Python3.7 - Python3.11- Ubuntu 20.04 (focal) Python3.5 -
> Python3.7, Python3.9 - Python3.11- Ubuntu 22.04 (jammy) Python3.7 -
> Python3.9, Python3.11- Note: Python2.7 (all), Python 3.6 (bionic),
> Python 3.8 (focal), Python 3.10 (jammy) are not provided by
> deadsnakes as upstream ubuntu provides those packages.
> Why some packages aren't built:- Note: for focal, older python
> versions require libssl<1.1 so they are not currently built- Note:
> for jammy, older python versions requre libssl<3 so they are not
> currently built- If you need these, reach out to asottile to set up a
> private ppa
> The packages may also work on other versions of Ubuntu or Debian, but
> that is not tested or supported.
> Packages========
> The packages provided here are loosely based on the debian upstream
> packages with some modifications to make them more usable as non-
> default pythons and on ubuntu. As such, the packages follow debian's
> patterns and often do not include a full python distribution with
> just `apt install python#.#`. Here is a list of packages that may be
> useful along with the default install:
> - `python#.#-dev`: includes development headers for building C
> extensions- `python#.#-venv`: provides the standard library `venv`
> module- `python#.#-distutils`: provides the standard library
> `distutils` module- `python#.#-lib2to3`: provides the `2to3-#.#`
> utility as well as the standard library `lib2to3` module- `python#.#-
> gdbm`: provides the standard library `dbm.gnu` module- `python#.#-
> tk`: provides the standard library `tkinter` module
> Third-Party Python Modules==========================
> Python modules in the official Ubuntu repositories are packaged to
> work with the Python interpreters from the official repositories.
> Accordingly, they generally won't work with the Python interpreters
> from this PPA. As an exception, pure-Python modules for Python 3 will
> work, but any compiled extension modules won't.
> To install 3rd-party Python modules, you should use the common Python
> packaging tools. For an introduction into the Python packaging
> ecosystem...

Read more...

Revision history for this message
adi sis (adisis23) wrote :

not found ppa:deadsnake ppa

On Thu, 2022-10-13 at 14:39 +0000, Nick Rosbrook wrote:
> *** This bug is a duplicate of bug 1970018 ***
> https://bugs.launchpad.net/bugs/1970018
>
> What happens when you run ppa-purge ppa:deadsnakes/ppa?
> `apt-add-repository --remove` only removes the PPA sources, it does
> notremove packages that were installed from that PPA. In your case,
> youneed to remove the python packages that were installed from
> thedeadsnakes PPA. The ppa-purge tool is meant for that.
>

Revision history for this message
Nick Rosbrook (enr0n) wrote :

You may have to manually downgrade your python packages then, like:

$ apt install python3=<latest version from Ubuntu archive>

Revision history for this message
adi sis (adisis23) wrote :

hi Nick, everything normal now
~$ cat /etc/lsb-
release DISTRIB_ID=UbuntuDISTRIB_RELEASE=22.04DISTRIB_CODENAME=jammyDIS
TRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
thanks for your full support
regards
On Thu, 2022-10-13 at 15:00 +0000, Nick Rosbrook wrote:
> *** This bug is a duplicate of bug 1970018 ***
> https://bugs.launchpad.net/bugs/1970018
>
> You may have to manually downgrade your python packages then, like:
> $ apt install python3=<latest version from Ubuntu archive>

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

Other bug subscribers

Remote bug watches

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