Upgrade Ubuntu 18.04 LTS auf Ubuntu 20.04 LTS

Haben Sie einen Bug entdeckt? Teilen Sie es uns mit.
Post Reply
Dennis030
Posts: 4
Joined: Mon 21. Aug 2023, 15:21

Upgrade Ubuntu 18.04 LTS auf Ubuntu 20.04 LTS

Post by Dennis030 »

Ich bin sicher, dass die Ursache des Problems bei KeyHelp liegt
(Probleme ohne KeyHelp-Bezug gehören ins Offtopic-Forum)
Fehlermeldungen bei KeyHelp Anleitung

Server-Betriebssystem + Version
Ubuntu 18.04 (64-bit)


Eingesetzte Server-Virtualisierung-Technologie
(z.B. keine, OpenVZ, KVM, XEN, etc.)


KeyHelp-Version + Build-Nummer
23.1.1 (Build 3016)


Problembeschreibung / Fehlermeldungen
Hallo, ich versuche die ganze Zeit, vom Betriebssystem Ubuntu 18.04 (64-bit) auf 20 zu kommen, jedoch ohne erfolg. Was mache ich falsch? Ich habe die Anleitung so übernommen: https://www.keyhelp.de/news/upgrade-ubu ... ubuntu-20/
jedoch kommen ständig Fehlermeldungen:

Error At least one of the following commands returned an error.
To avoid system damage, please run the commands yourself and fix any problems tat occur.
---
apt-get update ;
apt-get upgrade ;
apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confol" dist-upgrade ;
---
Fix the issues above, then launch this script again: "php keyhelp_ubuntu_upgrad_18_to_20.php"

Hat jemand vielleicht eine Lösung für mich? :-)

Erwartetes Ergebnis


Tatsächliches Ergebnis


Schritte zur Reproduktion


Zusätzliche Informationen
(z.B. kürzlich durchgeführte Änderungen am Server, Auszüge aus Protokolldateien (/var/log/*, /var/log/keyhelp/php-error.log, etc.))
User avatar
Jolinar
Community Moderator
Posts: 3614
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: Upgrade Ubuntu 18.04 LTS auf Ubuntu 20.04 LTS

Post by Jolinar »

Code: Select all

apt-get update ;
apt-get upgrade ;
apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confol" dist-upgrade ;
Wie ist die Ausgabe am CLI, wenn du die Befehle ausführst?
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
Dennis030
Posts: 4
Joined: Mon 21. Aug 2023, 15:21

Re: Upgrade Ubuntu 18.04 LTS auf Ubuntu 20.04 LTS

Post by Dennis030 »

Dann kommt folgendes:

Code: Select all

root@login:~# apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confol" dist-upgrade ;
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 lxd : Depends: lxd-client (= 3.0.3-0ubuntu1~18.04.2) but 1:0.10 is installed
 lxd-client : Depends: lxd (>= 1:0.10) but 3.0.3-0ubuntu1~18.04.2 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).



[Mod-Edit]
CODE-Tags eingefügt.
Konsolenausgaben, Logfileeinträge o.ä. bitte zukünftig immer mit CODE-Tags versehen!
User avatar
Jolinar
Community Moderator
Posts: 3614
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: Upgrade Ubuntu 18.04 LTS auf Ubuntu 20.04 LTS

Post by Jolinar »

Hast du auch gemacht, was da steht:

Code: Select all

You might want to run 'apt --fix-broken install' to correct these.
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
Dennis030
Posts: 4
Joined: Mon 21. Aug 2023, 15:21

Re: Upgrade Ubuntu 18.04 LTS auf Ubuntu 20.04 LTS

Post by Dennis030 »

Ja, aber jetzt habe ich folgende Fehelrmeldung:-(

Code: Select all

Expanded Security Maintenance for Infrastructure is not enabled.

360 updates can be applied immediately.
To see these additional updates run: apt list --upgradable

70 additional security updates can be applied with ESM Infra.
Learn more about enabling ESM Infra service for Ubuntu 18.04 at
https://ubuntu.com/18-04

New release '20.04.6 LTS' available.
Run 'do-release-upgrade' to upgrade to it.


Last login: Mon Aug 21 15:54:17 2023 from 95.90.238.137

Code: Select all

root@login:~# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libuv1
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  lxd
The following packages will be upgraded:
  lxd
1 upgraded, 0 newly installed, 0 to remove and 588 not upgraded.
47 not fully installed or removed.
Need to get 5532 B of archives.
After this operation, 20.6 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 lxd all 1:0.10 [5532 B]
Fetched 5532 B in 0s (28.5 kB/s)
Preconfiguring packages ...
(Reading database ... 106164 files and directories currently installed.)
Preparing to unpack .../archives/lxd_1%3a0.10_all.deb ...
Warning: Stopping lxd.service, but it can still be activated by:
  lxd.socket
=> Installing the LXD snap
==> Checking connectivity with the snap store
==> Installing the LXD snap from the 4.0 track for ubuntu-18.04
error: requested a non-existing branch on 4.0/stable for snap "lxd":
       ubuntu-18.04
dpkg: error processing archive /var/cache/apt/archives/lxd_1%3a0.10_all.deb (--unpack):
 new lxd package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/lxd_1%3a0.10_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@login:~#



[Mod-Edit]
Erneut CODE-Tags eingefügt.
Konsolenausgaben, Logfileeinträge o.ä. bitte zukünftig immer mit CODE-Tags versehen!
User avatar
Jolinar
Community Moderator
Posts: 3614
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: Upgrade Ubuntu 18.04 LTS auf Ubuntu 20.04 LTS

Post by Jolinar »

BTW:
Da ich kein Ubuntu, sondern nur Debian auf meinen Systemen nutze...Gehört LXD überhaupt zur Standardinstallation auf KeyHelp Ubuntu Maschinen?
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
User avatar
Alexander
Keyweb AG
Posts: 3842
Joined: Wed 20. Jan 2016, 02:23

Re: Upgrade Ubuntu 18.04 LTS auf Ubuntu 20.04 LTS

Post by Alexander »

Von KeyHelp wird es nicht installiert und auch nicht in irgendeiner Weise verwendet.
Das kommt allein vom Image des Betriebssystemhersteller.

Ich würde lxd einfach deinstallieren, i.d.R. braucht man das eh nicht - Ab Ubuntu 20 ist es auch schon nicht mehr standardmäßig dabei.

Wenn auf dem Server nur Standard KeyHelp läuft, ohne das großartig was nebenher installiert wurde, dann trifft die Aussage "braucht man eh nicht" sehr wahrscheinlich auf den Server zu.

Und falls nicht, du hast ja sicher ein Backup gemacht ;).
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Post Reply