GNU/Linux >> Linux Esercitazione >  >> Ubuntu

L'aggiornamento a Ubuntu 20.04 non riesce sui pacchetti I386?

Di recente ho eseguito l'aggiornamento da 16.04 a 18.04.4 LTS e ora desidero eseguire nuovamente l'aggiornamento a 20.04 LTS utilizzando

sudo do-release-upgrade -d

Il processo non riesce con un messaggio di errore su ppas, ma i file di registro mostrano che il problema ha a che fare con ubuntu-standard e lsof conflitti. Sembra che non possa risolvere il conflitto tra lsof:amd e lsof:i386. Ho provato a rimuoverli e reinstallarli, ma non ha ancora funzionato.

C'è qualcosa che posso fare o devo aspettare e sperare che venga risolto dai manutentori del pacchetto?

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.'

EDIT:come richiesto, ecco l'output di 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

Ho anche provato a eseguire l'aggiornamento a 19.10 come passaggio intermedio, ma questo stesso problema lsof lo sta bloccando.

Correlati:quanto è sicuro il bidello di Ubuntu tweak?

Risposta accettata:

Con l'aiuto di N0rbert, ho determinato che il problema con il mio aggiornamento era rappresentato dai vecchi pacchetti i386 insieme alla mia installazione di amd64. Ho provato diversi modi per rimuovere questa architettura come suggerito cercando su Internet. Tutti hanno fallito con problemi di dipendenza fino a quando non mi sono imbattuto in questa risposta di PythoNic. Anche il suo suggerimento che aptitude è meglio di apt-get era corretto. apt-get ha fallito anche con problemi di dipendenza.

# 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

L'aggiornamento alla 20.04 è ora in esecuzione.


Ubuntu
  1. Aggiorna Ubuntu 12.10 a 13.04

  2. Aggiornamento da Ubuntu 13.10 a Ubuntu 14.04

  3. Aggiornamento da Ubuntu 13.04 a Ubuntu 13.10

  4. Come aggiornare Ubuntu 18.04 a Ubuntu 18.10

  5. Come aggiornare i pacchetti su Ubuntu tramite riga di comando

Blocca o impedisci l'aggiornamento di un pacchetto in Debian, Ubuntu

Come aggiornare Ubuntu 20.04 a 21.04

Come aggiornare Ubuntu 16.04 a Ubuntu 16.10

Come aggiornare Ubuntu 18.04 a 20.04?

Come aggiornare Ubuntu 20.04 a Ubuntu 20.10

Come aggiornare Ubuntu 20.10 a Ubuntu 21.04