• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Dist-upgrade Ubuntu 22.04 to 24.04 has unmeet dependencies

andreios

Regular Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
18.0.61 #5
Following this guide, I get this on step 14. https://support.plesk.com/hc/en-us/...-upgrade-procedure-on-Linux-server-with-Plesk
Code:
aptitude install base-files linux-generic libc6 python3 mariadb-server                                                                                                                                                ─╯
mariadb-server is already installed at the requested version (1:10.11.8+maria~ubu2204)
mariadb-server is already installed at the requested version (1:10.11.8+maria~ubu2204)
The following NEW packages will be installed:
  liblerc4{a} libsharpyuv0{a} libtiff6{a} linux-image-6.8.0-35-generic{a} linux-modules-6.8.0-35-generic{a} linux-modules-extra-6.8.0-35-generic{a}
The following packages will be REMOVED:
  libnsl-dev{u} libtirpc-dev{u} linux-headers-generic{u} python3-distutils{a} python3-lib2to3{u} python3-minimal{u}
The following packages will be upgraded:
  base-files libc-bin libc-dev-bin libc6 libc6-dev libtalloc2 libwebp7 libwebpdemux2 libwebpmux3 libzstd-dev libzstd1 linux-generic{b} linux-image-generic locales locales-all python3{b} python3-cffi-backend
  python3-lxml python3-netifaces python3-pil python3-psutil python3-yaml
The following packages are RECOMMENDED but will NOT be installed:
  libc-devtools libc-devtools:i386 linux-tools-6.8.0-35-generic manpages manpages-dev python3-bs4 python3-cssselect python3-html5lib python3-olefile thermald ubuntu-kernel-accessories
22 packages upgraded, 6 newly installed, 6 to remove and 982 not upgraded.
Need to get 192 MB of archives. After unpacking 170 MB will be used.
The following packages have unmet dependencies:
 libglib2.0-dev-bin : Depends: python3-distutils but it is not going to be installed
 python3-gi : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
 python3-venv : Depends: python3 (= 3.10.6-1~22.04) but 3.12.3-0ubuntu1 is to be installed
                Depends: python3-distutils (>= 3.10.6-1~) but it is not going to be installed
 python3-reportlab-accel : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
 python3.10-venv : Depends: python3.10-distutils which is a virtual package, provided by:
                            - python3-distutils (3.10.8-1~22.04), but it is not going to be installed

 python3-pikepdf : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
 python3 : PreDepends: python3-minimal (= 3.12.3-0ubuntu1) but it is not going to be installed
           Depends: python3.12 (>= 3.12.3-0~) but it is not installable
           Depends: libpython3-stdlib (= 3.12.3-0ubuntu1) but 3.10.6-1~22.04 is installed and it is kept back
 plesk-service-node-utilities : Depends: python3-distutils but it is not going to be installed
 linux-generic : Depends: linux-headers-generic (= 6.8.0-35.35) but it is not going to be installed
 python3-wheel : Depends: python3-distutils but it is not going to be installed
 python3-talloc : Depends: libtalloc2 (= 2.3.3-2build1) but 2.4.2-1build2 is to be installed
                  Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
 plesk-core-utilities : Depends: python3-distutils but it is not going to be installed
 python3-apt : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
 python3-dev : Depends: python3 (= 3.10.6-1~22.04) but 3.12.3-0ubuntu1 is to be installed
               Depends: python3-distutils (>= 3.10.6-1~) but it is not going to be installed
 python3-ldb : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
 python3-pip : Depends: python3-distutils but it is not going to be installed
 libapache2-mod-python : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
 python3-setuptools : Depends: python3-distutils but it is not going to be installed
 python3-dbus : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
open: 7926; closed: 16848; defer: 112; conflict: 131                                                                                                                                                                       oNo solution found within the allotted time.  Try harder? [Y/n] n
Abandoning all efforts to resolve these dependencies.
The following NEW packages will be installed:
  liblerc4{a} libsharpyuv0{a} libtiff6{a} linux-image-6.8.0-35-generic{a} linux-modules-6.8.0-35-generic{a} linux-modules-extra-6.8.0-35-generic{a}
The following packages will be REMOVED:
  libnsl-dev{u} libtirpc-dev{u} linux-headers-generic{u} python3-distutils{a} python3-lib2to3{u} python3-minimal{u}
The following packages will be upgraded:
  base-files libc-bin libc-dev-bin libc6 libc6-dev libtalloc2 libwebp7 libwebpdemux2 libwebpmux3 libzstd-dev libzstd1 linux-generic{b} linux-image-generic locales locales-all python3{b} python3-cffi-backend
  python3-lxml python3-netifaces python3-pil python3-psutil python3-yaml
The following packages are RECOMMENDED but will NOT be installed:
  libc-devtools libc-devtools:i386 linux-tools-6.8.0-35-generic manpages manpages-dev python3-bs4 python3-cssselect python3-html5lib python3-olefile thermald ubuntu-kernel-accessories
22 packages upgraded, 6 newly installed, 6 to remove and 982 not upgraded.
Need to get 192 MB of archives. After unpacking 170 MB will be used.
aptitude failed to find a solution to these dependencies.  You can solve them yourself by hand or type 'n' to quit.
The following packages have unmet dependencies:
 libglib2.0-dev-bin : Depends: python3-distutils but it is not going to be installed
 python3-gi : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
 python3-venv : Depends: python3 (= 3.10.6-1~22.04) but 3.12.3-0ubuntu1 is to be installed
                Depends: python3-distutils (>= 3.10.6-1~) but it is not going to be installed
 python3-reportlab-accel : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
 python3.10-venv : Depends: python3.10-distutils which is a virtual package, provided by:
                            - python3-distutils (3.10.8-1~22.04), but it is not going to be installed

 python3-pikepdf : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
 python3 : PreDepends: python3-minimal (= 3.12.3-0ubuntu1) but it is not going to be installed
           Depends: python3.12 (>= 3.12.3-0~) but it is not installable
           Depends: libpython3-stdlib (= 3.12.3-0ubuntu1) but 3.10.6-1~22.04 is installed and it is kept back
 plesk-service-node-utilities : Depends: python3-distutils but it is not going to be installed
 linux-generic : Depends: linux-headers-generic (= 6.8.0-35.35) but it is not going to be installed
 python3-wheel : Depends: python3-distutils but it is not going to be installed
 python3-talloc : Depends: libtalloc2 (= 2.3.3-2build1) but 2.4.2-1build2 is to be installed
                  Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
 plesk-core-utilities : Depends: python3-distutils but it is not going to be installed
 python3-apt : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
 python3-dev : Depends: python3 (= 3.10.6-1~22.04) but 3.12.3-0ubuntu1 is to be installed
               Depends: python3-distutils (>= 3.10.6-1~) but it is not going to be installed
 python3-ldb : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
 python3-pip : Depends: python3-distutils but it is not going to be installed
 libapache2-mod-python : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
 python3-setuptools : Depends: python3-distutils but it is not going to be installed
 python3-dbus : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
Resolve these dependencies by hand? [N/+/-/_/:/?] n
Abort.
Is it correct that some plesk sources are still jammy at this step?
grep -i jammy /etc/apt -R
/etc/apt/sources.list.d/plesk-ext-docker.list:deb [arch=amd64 signed-by=/etc/apt/keyrings/plesk-ext-docker.gpg] Index of linux/ubuntu/ jammy stable
/etc/apt/sources.list.d/plesk-ext-ruby.list:deb [arch=amd64 signed-by=/etc/apt/keyrings/plesk.gpg] Index of /RUBY_0.0.2 jammy all
/etc/apt/sources.list.d/plesk.list:deb [signed-by=/etc/apt/keyrings/plesk.gpg] Index of /pool/PSA_18.0.61_14662 jammy extras
/etc/apt/sources.list.d/plesk.list:deb [signed-by=/etc/apt/keyrings/plesk.gpg] Index of /PHP82_17 jammy all
/etc/apt/sources.list.d/plesk.list:deb [signed-by=/etc/apt/keyrings/plesk.gpg] Index of /PHP83_17 jammy all
 
When I replace jammy with nobel in these files, I get at least a suggestion. But in this case, I obviously have to reinstall Plesk completely.

Code:
aptitude install base-files linux-generic libc6 python3 mariadb-server 
[...]

      Remove the following packages:                                                                     
1)      libapache2-mod-passenger-plesk [1:6.0.20-v.ubuntu.22.04+p18.0.61.0+t240426.1307 (now)]           
2)      libdw1 [0.186-1build1 (now)]                                                                     
3)      libelf1 [0.186-1build1 (now)]                                                                   
4)      libglib2.0-0 [2.72.4-0ubuntu2.3 (now)]                                                           
5)      linux-generic [5.15.0.112.112 (now)]                                                             
6)      passenger [1:6.0.20-v.ubuntu.22.04+p18.0.61.0+t240426.1307 (now)]                               
7)      passenger-dev [1:6.0.20-v.ubuntu.22.04+p18.0.61.0+t240426.1307 (now)]                           
8)      pipx [1.0.0-1 (now)]                                                                             
9)      plesk-awstats-configurator [18.0-v.ubuntu.22.04+p18.0.61.0+t240426.1307 (now)]                   
10)     plesk-config-troubleshooter [18.0-v.ubuntu.22.04+p18.0.61.0+t240507.0943 (now)]                 
11)     plesk-core [18.0-v.ubuntu.22.04+p18.0.61.4+t240528.0547 (now)]                                   
12)     plesk-core-utilities [18.0-v.ubuntu.22.04+p18.0.61.5+t240603.0658 (now)]                         
13)     plesk-l10n [18.0-v.ubuntu.22.04+p18.0.61.5+t240603.0658 (now)]                                   
14)     plesk-mail-pc-driver [18.0-v.ubuntu.22.04+p18.0.61.5+t240603.0658 (now)]                         
15)     plesk-repair-kit [18.0-v.ubuntu.22.04+p18.0.61.5+t240603.0658 (now)]                             
16)     plesk-roundcube [1.6.7-v.ubuntu.22.04+p18.0.61.4+t240526.0705 (now)]                             
17)     plesk-service-node-utilities [18.0-v.ubuntu.22.04+p18.0.61.5+t240603.0658 (now)]                 
18)     plesk-task-manager [18.0-v.ubuntu.22.04+p18.0.61.0+t240426.1307 (now)]                           
19)     plesk-web-hosting [18.0-v.ubuntu.22.04+p18.0.61.0+t240426.1307 (now)]                           
20)     plesk-web-socket [18.0-v.ubuntu.22.04+p18.0.61.0+t240426.1307 (now)]                             
21)     pp-sitebuilder [18.0.59-v.ubuntu.18.04+p18.0.59.0+t240123.2011 (all, now)]                       
22)     psa-mail-driver-common [18.0-v.ubuntu.22.04+p18.0.61.5+t240603.0658 (now)]                       
23)     psa-spamassassin [18.0-v.ubuntu.22.04+p18.0.61.0+t240426.1307 (now)]                             
24)     psa-updates [18.0-v.ubuntu.22.04+p18.0.61.0+t240426.1307 (now)]                                 
25)     psa-vhost [18.0-v.ubuntu.22.04+p18.0.61.0+t240426.1307 (now)]                                   
26)     python3-dev [3.10.6-1~22.04 (now)]                                                               
27)     python3-venv [3.10.6-1~22.04 (now)]                                                             
28)     python3.10-venv [3.10.12-1~22.04.3 (now)]                                                       
29)     wpb-core [18.0.55-v.ubuntu.18.04+p18.0.59.0+t240123.2011 (all, now)]                             
30)     wpb-designs-00 [18.0.55-v.ubuntu.18.04+p18.0.59.0+t240123.2011 (all, now)]                       
31)     wpb-designs-01 [18.0.55-v.ubuntu.18.04+p18.0.59.0+t240123.2011 (all, now)]                       
32)     wpb-designs-03 [18.0.55-v.ubuntu.18.04+p18.0.59.0+t240123.2011 (all, now)]                       
33)     wpb-designs-04 [18.0.55-v.ubuntu.18.04+p18.0.59.0+t240123.2011 (all, now)]                       
34)     wpb-designs-05 [18.0.55-v.ubuntu.18.04+p18.0.59.0+t240123.2011 (all, now)]                       
35)     wpb-designs-07 [18.0.55-v.ubuntu.18.04+p18.0.59.0+t240123.2011 (all, now)]                       
36)     wpb-designs-09 [18.0.55-v.ubuntu.18.04+p18.0.59.0+t240123.2011 (all, now)]                       
37)     wpb-designs-12 [18.0.55-v.ubuntu.18.04+p18.0.59.0+t240123.2011 (all, now)]                       
38)     wpb-designs-14 [18.0.55-v.ubuntu.18.04+p18.0.59.0+t240123.2011 (all, now)]                       
39)     wpb-designs-20 [18.0.55-v.ubuntu.18.04+p18.0.59.0+t240123.2011 (all, now)]                       
40)     wpb-headers [18.0.55-v.ubuntu.18.04+p18.0.59.0+t240123.2011 (all, now)]                         

      Install the following packages:                                                                   
41)     gcc-14-base [14-20240412-0ubuntu1 (noble)]                                                       
42)     gcc-14-base:i386 [14-20240412-0ubuntu1 (noble)]                                                 
43)     libc6:i386 [2.39-0ubuntu8.2 (noble-security, noble-updates)]                                     
44)     libdw1t64 [0.190-1.1build4 (noble)]                                                             
45)     libelf1t64 [0.190-1.1build4 (noble)]                                                             
46)     libgcc-s1:i386 [14-20240412-0ubuntu1 (noble)]                                                   
47)     libgirepository-2.0-0 [2.80.0-6ubuntu3.1 (noble-security, noble-updates)]                       
48)     libglib2.0-0t64 [2.80.0-6ubuntu3.1 (noble-security, noble-updates)]                             
49)     libpkgconf3:i386 [1.8.1-2build1 (noble)]                                                         
50)     pkgconf [1.8.1-2build1 (noble)]                                                                 
51)     pkgconf-bin:i386 [1.8.1-2build1 (noble)]                                                         

      Keep the following packages at their current version:                                             
52)     libtalloc2 [2.3.3-2build1 (now)]                                                                 
53)     python3 [3.10.6-1~22.04 (now)]                                                                   
54)     python3-cffi-backend [1.15.0-1build2 (now)]                                                     
55)     python3-lxml [4.8.0-1build1 (now)]                                                               
56)     python3-minimal [3.10.6-1~22.04 (now)]                                                           
57)     python3-netifaces [0.11.0-1build2 (now)]                                                         
58)     python3-pil [9.0.1-1ubuntu0.3 (now)]                                                             
59)     python3-yaml [5.4.1-1ubuntu1 (now)]                                                             

      Upgrade the following packages:                                                                   
60)     libgcc-s1 [12.3.0-1ubuntu1~22.04 (now) -> 14-20240412-0ubuntu1 (noble)]                         
61)     libglib2.0-bin [2.72.4-0ubuntu2.3 (now) -> 2.80.0-6ubuntu3.1 (noble-security, noble-updates)]   
62)     libglib2.0-dev [2.72.4-0ubuntu2.3 (now) -> 2.80.0-6ubuntu3.1 (noble-security, noble-updates)]   
63)     libglib2.0-dev-bin [2.72.4-0ubuntu2.3 (now) -> 2.80.0-6ubuntu3.1 (noble-security, noble-updates)]
64)     pkg-config [0.29.2-1ubuntu3 (now) -> 1.8.1-2build1 (noble)]                                     
65)     python3-pip [22.0.2+dfsg-1ubuntu0.4 (now) -> 24.0+dfsg-1ubuntu1 (noble)]                         
66)     python3-pkg-resources [59.6.0-1.2ubuntu0.22.04.1 (now) -> 68.1.2-2ubuntu1 (noble)]               
67)     python3-setuptools [59.6.0-1.2ubuntu0.22.04.1 (now) -> 68.1.2-2ubuntu1 (noble)]                 
68)     python3-wheel [0.37.1-2ubuntu0.22.04.1 (now) -> 0.42.0-2 (noble)]                               
Accept this solution? [Y/n/q/?] n
 
I notice that I missed step 8, but this didn't help much, the main problem persisted, dependencies could not be properly resolved.
I had to remove 'python3-distutils' which was installed by my self.
Code:
dpkg -r --force-depends python3-distutils
After that the worst was fixed, but python3 was held back, but according to step 14 (aptitude install base-files linux-generic libc6 python3 mariadb-server) it should be upgraded.
It worked after I resolved existing conflicts:
Code:
apt install -f
After that, I could continue with step 14.

On step 21 this happened:
Code:
apt-get dist-upgrade
[...]
E: Failure to fetch https://esm.ubuntu.com/apps/ubuntu/pool/main/f/ffmpeg/libavutil58_6.1.1-3ubuntu5%2besm1_amd64.deb 401  Unauthorized [IP: : 443]
E: Failure to fetch https://esm.ubuntu.com/apps/ubuntu/pool/main/f/ffmpeg/libswresample4_6.1.1-3ubuntu5%2besm1_amd64.deb 401  Unauthorized [IP: : 443]
E: Failure to fetch https://esm.ubuntu.com/apps/ubuntu/pool/main/f/ffmpeg/libavcodec60_6.1.1-3ubuntu5%2besm1_amd64.deb 401  Unauthorized [IP: : 443]
E: Fehlschlag beim Holen von https://esm.ubuntu.com/apps/ubuntu/pool/main/c/cjson/libcjson1_1.7.17-1ubuntu0.1%7eesm2_amd64.deb 401  Unauthorized [IP: : 443]
E: Failure to fetch https://esm.ubuntu.com/apps/ubuntu/pool/main/f/ffmpeg/libavformat60_6.1.1-3ubuntu5%2besm1_amd64.deb 401  Unauthorized [IP: :443]
E: FFailure to fetch https://esm.ubuntu.com/apps/ubuntu/pool/main/f/ffmpeg/libpostproc57_6.1.1-3ubuntu5%2besm1_amd64.deb 401  Unauthorized [IP: : 443]
E: Failure to fetch https://esm.ubuntu.com/apps/ubuntu/pool/main/f/ffmpeg/libswscale7_6.1.1-3ubuntu5%2besm1_amd64.deb 401  Unauthorized [IP: : 443]
E: Failure to fetch https://esm.ubuntu.com/apps/ubuntu/pool/main/f/ffmpeg/libavfilter9_6.1.1-3ubuntu5%2besm1_amd64.deb 401  Unauthorized [IP: : 443]
E:Failure to fetch https://esm.ubuntu.com/apps/ubuntu/pool/main/f/ffmpeg/libavdevice60_6.1.1-3ubuntu5%2besm1_amd64.deb 401  Unauthorized [IP: : 443]
E: Failure to fetch https://esm.ubuntu.com/apps/ubuntu/pool/main/f/ffmpeg/ffmpeg_6.1.1-3ubuntu5%2besm1_amd64.deb 401  Unauthorized [IP: : 443]
To continue the update process, I did this:
Code:
apt-get purge ubuntu-advantage-tools --autoremove
mv /etc/apt/sources.list.d/ubuntu-esm-infra.list /root
apt update
apt-get dist-upgrade #step 21

Step 24 failed (plesk installer update), there was no network available. I had to reboot.

After finishing, I reinstalled Ubuntu Pro.
 
Back
Top