GNU/Linux >> LINUX-Kenntnisse >  >> Ubuntu

Upgrade auf Ubuntu 20.04 schlägt bei I386-Paketen fehl?

Ich habe vor Kurzem ein Upgrade von 16.04 auf 18.04.4 LTS durchgeführt und möchte jetzt erneut auf 20.04 LTS mit

aktualisieren
sudo do-release-upgrade -d

Der Prozess schlägt mit einer Fehlermeldung über ppas fehl, aber die Protokolldateien zeigen, dass das Problem mit ubuntu-standard- und lsof-Konflikten zu tun hat. Es scheint, dass es den Konflikt zwischen lsof:amd und lsof:i386 nicht lösen kann. Ich habe versucht, diese zu entfernen und neu zu installieren, aber bisher hat nichts funktioniert.

Kann ich irgendetwas tun, oder sollte ich warten und hoffen, dass dies von den Paketbetreuern gelöst wird?

Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) ubuntu-standard:amd64 < 1.417.4 -> 1.450.1 @ii umU Ib >
Broken ubuntu-standard:amd64 Depends on lsof:amd64 < 4.89+dfsg-0.1 | 4.93.2+dfsg-1 @ii ugR >
  Considering lsof:amd64 0 as a solution to ubuntu-standard:amd64 2
  Added lsof:amd64 to the remove list
  Fixing ubuntu-standard:amd64 via keep of lsof:amd64
  MarkKeep lsof:amd64 < 4.89+dfsg-0.1 | 4.93.2+dfsg-1 @ii ugR > FU=0
Investigating (0) lsof:amd64 < 4.89+dfsg-0.1 | 4.93.2+dfsg-1 @ii ugH Ib >
Broken lsof:amd64 Conflicts on lsof:i386 < none -> 4.93.2+dfsg-1 @un umN Ib >
  Considering lsof:i386 4 as a solution to lsof:amd64 0
  Re-Instated lsof:amd64
Investigating (1) lsof:i386 < none -> 4.93.2+dfsg-1 @un umN Ib >
Broken lsof:i386 Conflicts on lsof:amd64 < 4.89+dfsg-0.1 -> 4.93.2+dfsg-1 @ii ugU Ib >
  Considering lsof:amd64 0 as a solution to lsof:i386 4
  Added lsof:amd64 to the remove list
  Conflicts//Breaks against version 4.89+dfsg-0.1 for lsof but that is not InstVer, ignoring
  Fixing lsof:i386 via remove of lsof:amd64
  MarkDelete lsof:amd64 < 4.89+dfsg-0.1 -> 4.93.2+dfsg-1 @ii ugU Ib > FU=0
Investigating (1) ubuntu-standard:amd64 < 1.417.4 -> 1.450.1 @ii umU Ib >
Broken ubuntu-standard:amd64 Depends on lsof:amd64 < 4.89+dfsg-0.1 | 4.93.2+dfsg-1 @ii ugR >
  Considering lsof:amd64 0 as a solution to ubuntu-standard:amd64 2
  Added lsof:amd64 to the remove list
  Fixing ubuntu-standard:amd64 via keep of lsof:amd64
  MarkKeep lsof:amd64 < 4.89+dfsg-0.1 | 4.93.2+dfsg-1 @ii ugR > FU=0
Investigating (1) lsof:amd64 < 4.89+dfsg-0.1 | 4.93.2+dfsg-1 @ii ugH Ib >
Broken lsof:amd64 Conflicts on lsof:i386 < none -> 4.93.2+dfsg-1 @un umN Ib >
  Considering lsof:i386 4 as a solution to lsof:amd64 0
  Removing lsof:amd64 rather than change lsof:i386
  MarkDelete lsof:amd64 < 4.89+dfsg-0.1 | 4.93.2+dfsg-1 @ii ugH Ib > FU=0
Investigating (2) ubuntu-standard:amd64 < 1.417.4 -> 1.450.1 @ii umU Ib >
Broken ubuntu-standard:amd64 Depends on lsof:amd64 < 4.89+dfsg-0.1 | 4.93.2+dfsg-1 @ii ugR >
  Considering lsof:amd64 0 as a solution to ubuntu-standard:amd64 2
  Added lsof:amd64 to the remove list
  Fixing ubuntu-standard:amd64 via keep of lsof:amd64
  MarkKeep lsof:amd64 < 4.89+dfsg-0.1 | 4.93.2+dfsg-1 @ii ugR > FU=0
Investigating (2) lsof:amd64 < 4.89+dfsg-0.1 | 4.93.2+dfsg-1 @ii ugH Ib >
Broken lsof:amd64 Conflicts on lsof:i386 < none -> 4.93.2+dfsg-1 @un umN Ib >
  Considering lsof:i386 4 as a solution to lsof:amd64 2
  Removing lsof:amd64 rather than change lsof:i386
  MarkDelete lsof:amd64 < 4.89+dfsg-0.1 | 4.93.2+dfsg-1 @ii ugH Ib > FU=0
Investigating (3) ubuntu-standard:amd64 < 1.417.4 -> 1.450.1 @ii umU Ib >
Broken ubuntu-standard:amd64 Depends on lsof:amd64 < 4.89+dfsg-0.1 | 4.93.2+dfsg-1 @ii ugR >
  Considering lsof:amd64 4 as a solution to ubuntu-standard:amd64 2
  MarkKeep ubuntu-standard:amd64 < 1.417.4 -> 1.450.1 @ii umU Ib > FU=0
    Reinst Failed because of lsof:amd64
  MarkKeep ubuntu-standard:amd64 < 1.417.4 -> 1.450.1 @ii umU Ib > FU=0
  Removing ubuntu-standard:amd64 rather than change lsof:amd64

...

DEBUG The package 'ubuntu-standard' is marked for removal but it's in the removal blacklist
ERROR Dist-upgrade failed: 'The package 'ubuntu-standard' is marked for removal but it is in the removal blacklist.'

BEARBEITEN:wie gewünscht, hier ist die Ausgabe von apt-cache policy ubuntu-standard lsof lsof:i386

ubuntu-standard:
  Installed: 1.417.4
  Candidate: 1.417.4
  Version table:
 *** 1.417.4 500
        500 http://ca.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.417 500
        500 http://ca.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
lsof:
  Installed: 4.89+dfsg-0.1
  Candidate: 4.89+dfsg-0.1
  Version table:
 *** 4.89+dfsg-0.1 500
        500 http://ca.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
lsof:i386:
  Installed: (none)
  Candidate: 4.89+dfsg-0.1
  Version table:
     4.89+dfsg-0.1 500
        500 http://ca.archive.ubuntu.com/ubuntu bionic/main i386 Packages

Ich habe auch versucht, als Zwischenschritt auf 19.10 zu aktualisieren, aber dasselbe lsof-Problem blockiert es.

Verwandte:Wie sicher ist der Hausmeister von Ubuntu Tweak?

Akzeptierte Antwort:

Mit etwas Hilfe von N0rbert stellte ich fest, dass das Problem mit meinem Upgrade alte i386-Pakete neben meiner amd64-Installation waren. Ich habe verschiedene Möglichkeiten ausprobiert, um diese Architektur zu entfernen, wie durch eine Suche im Internet vorgeschlagen. Sie alle scheiterten an Abhängigkeitsproblemen, bis ich auf diese Antwort von PythoNic stieß. Sein Vorschlag, dass aptitude besser ist als apt-get, war ebenfalls richtig. apt-get schlug auch mit Abhängigkeitsproblemen fehl.

# install aptitude if you don't already have it
sudo apt-get install aptitude

# get rid of all the :i386 versions of packages
# apt-get failed on this, but aptitude suggested a way to do it
sudo aptitude purge `dpkg --get-selections | grep ":i386" | awk '{print $1}'`

# stick with amd64 architecture
dpkg --remove-architecture i386

Das Upgrade auf 20.04 läuft jetzt.


Ubuntu
  1. Aktualisieren Sie Ubuntu 12.10 auf 13.04

  2. Upgrade von Ubuntu 13.10 auf Ubuntu 14.04

  3. Aktualisieren Sie von Ubuntu 13.04 auf Ubuntu 13.10

  4. So aktualisieren Sie Ubuntu 18.04 auf Ubuntu 18.10

  5. So aktualisieren Sie Pakete unter Ubuntu über die Befehlszeile

Halten oder verhindern Sie, dass ein Paket in Debian, Ubuntu aktualisiert wird

So aktualisieren Sie Ubuntu 20.04 auf 21.04

So aktualisieren Sie Ubuntu 16.04 auf Ubuntu 16.10

Wie aktualisiere ich Ubuntu 18.04 auf 20.04?

So aktualisieren Sie Ubuntu 20.04 auf Ubuntu 20.10

So aktualisieren Sie Ubuntu 20.10 auf Ubuntu 21.04