Problem beim Versuch, Ubuntu durch Mint zu ersetzen

Problem beim Versuch, Ubuntu durch Mint zu ersetzen

Ich habe versucht, Ubuntu durch Linux Mint zu ersetzen. Ich habe eine Datei (installed.list) erstellt apt list --installed > installed.list. Sie hat eine Datei mit den installierten Paketen erstellt. Danach habe ich Linux Mint neben Ubuntu installiert. Dann habe ich die/heimOrdner (einschließlich der Dotfiles) zu Mint. Ich habe versucht, die Pakete erneut aus der installed.listDatei zu installieren, indem ich sudo apt install $(cut -d'/' -f1 installed.list). Ich erhalte diesen Fehler E: Unable to locate packageund seinen Namen für jedes Paket, das ich zu installieren versuche.

Ausgabe:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package snapd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libgc1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libgc1c2:i386 libgc1c2

Package virtualbox-6.1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package Listing...
E: Unable to locate package 4kvideodownloader
E: Unable to locate package bsdextrautils
E: Unable to locate package code
E: Unable to locate package jdk-16
E: Unable to locate package libcdio19
E: Unable to locate package libdav1d4
E: Unable to locate package libdav1d4
E: Unable to locate package libdns-export1110
E: Unable to locate package libdvdread8
E: Unable to locate package libebml5
E: Unable to locate package libedataserver-1.2-25
E: Unable to locate package libffi8ubuntu1
E: Unable to locate package libffi8ubuntu1
E: Unable to locate package libfm-qt7
E: Package 'libgc1' has no installation candidate
E: Unable to locate package libgnustep-base1.27
E: Unable to locate package libgpaste13
E: Unable to locate package libhandy-1-0
E: Unable to locate package libhfstospell11
E: Unable to locate package libhogweed6
E: Unable to locate package libhogweed6
E: Unable to locate package libicu67
E: Unable to locate package libicu67
E: Unable to locate package libilmbase25
E: Unable to locate package libjson-c5
E: Unable to locate package liblibreoffice-java
E: Unable to locate package libmatroska7
E: Unable to locate package libmetacity3
E: Unable to locate package libmetrics-any-perl
E: Unable to locate package libmutter-7-0
E: Unable to locate package libnettle8
E: Unable to locate package libnettle8
E: Unable to locate package libnma-common
E: Unable to locate package libnsl-dev
E: Unable to locate package libnsl2
E: Unable to locate package libnsl2
E: Unable to locate package libnss-nis
E: Unable to locate package libnss-nis
E: Unable to locate package libnss-nisplus
E: Unable to locate package libnss-nisplus
E: Unable to locate package libopenexr25
E: Unable to locate package liborcus-parser-0.15-0
E: Unable to locate package libplacebo72
E: Unable to locate package libpoppler102
E: Unable to locate package libpoppler102
E: Unable to locate package libprotobuf-lite23
E: Unable to locate package libprotobuf23
E: Unable to locate package libqpdf28
E: Unable to locate package libqt5qmlmodels5
E: Unable to locate package libqt5qmlworkerscript5
E: Unable to locate package libreoffice-style-yaru
E: Unable to locate package libsrt1-gnutls
E: Unable to locate package libtepl-5-0
E: Unable to locate package libtest-metrics-any-perl
E: Unable to locate package libx264-160
E: Unable to locate package libx264-160
E: Unable to locate package libx265-192
E: Unable to locate package libx265-192
E: Unable to locate package libx86emu3
E: Unable to locate package linux-headers-5.8.0-50
E: Unable to locate package linux-headers-5.8.0-53
E: Unable to locate package microsoft-edge-beta
E: Unable to locate package rpcsvc-proto
E: Package 'snapd' has no installation candidate
E: Unable to locate package ubuntu-wallpapers-groovy
E: Package 'virtualbox-6.1' has no installation candidate
E: Unable to locate package vivaldi-stable
E: Unable to locate package wps-office
E: Unable to locate package zoom

installierte.Liste:

Listing...
4kvideodownloader/now 4.15-1 amd64 [installed,local]
a11y-profile-manager-indicator/groovy,now 0.1.11-0ubuntu4 amd64 [installed,automatic]
accountsservice-ubuntu-schemas/groovy,groovy,now 0.0.7+17.10.20170922-0ubuntu1 all [installed,automatic]
accountsservice/groovy-updates,groovy-security,now 0.6.55-0ubuntu13.2 amd64 [installed,automatic]
acl/groovy,now 2.2.53-8 amd64 [installed,automatic]
acpi-support/groovy,now 0.143 amd64 [installed,automatic]
acpid/groovy,now 1:2.0.32-1ubuntu1 amd64 [installed,automatic]
activity-log-manager/groovy,now 0.9.7-0ubuntu27 amd64 [installed,automatic]
adcli/groovy-updates,groovy-security,now 0.9.0-1ubuntu1.2 amd64 [installed,automatic]
adduser/groovy,groovy,now 3.118ubuntu2 all [installed,automatic]
adium-theme-ubuntu/groovy,groovy,now 0.3.4-0ubuntu4 all [installed,automatic]
adwaita-icon-theme/groovy,groovy,now 3.38.0-1ubuntu1 all [installed,automatic]
aisleriot/groovy,now 1:3.22.9-1 amd64 [installed,automatic]
alsa-base/groovy,groovy,now 1.0.25+dfsg-0ubuntu5 all [installed,automatic]
alsa-topology-conf/groovy,groovy,now 1.2.3-1 all [installed,automatic]
alsa-ucm-conf/groovy-updates,groovy-updates,now 1.2.2-1ubuntu5.2 all [installed,automatic]
alsa-utils/groovy,now 1.2.3-1ubuntu1 amd64 [installed,automatic]
amd64-microcode/groovy,now 3.20191218.1ubuntu1 amd64 [installed,automatic]
anacron/groovy,now 2.3-29 amd64 [installed,automatic]
apg/groovy,now 2.2.3.dfsg.1-5 amd64 [installed,automatic]
app-install-data-partner/groovy,groovy,now 19.04 all 

HINWEIS: Es gibt mehr, aber es sind fast 220.000 Zeichen.

Ursprünglicher BeitragHier.

Antwort1

Um die Liste der nicht verfügbaren Pakete zu reduzieren, müssen Sie Folgendes aktivieren universe. Beispiel: ist im Repository jdk-16verfügbar :universe

sudo apt-add-repository universe
sudo apt update

Viele der Pakete können nicht auf Linux Mint installiert werden, da diese Pakete nur auf Ubuntu Groovy und höher verfügbar sind und Ihre Linux Mint-Version auf Ubuntu Focal basiert.

Antwort2

Sie überspringen zu viele Schritte. Filtern Sie zuerst alle Bibliotheksdateien heraus. Bis auf wenige Ausnahmen handelt es sich dabei um Abhängigkeiten eines anderen Pakets. Die richtige Version wird bei der Installation des Hauptpakets einbezogen:

dpkg -l | awk '$2 !~ /^lib|zoom|microsoft/ {print $2}' > installed.txt

Dieser Befehl verwendet dpkg -l [Pakete auflisten], nimmt dann alle Elemente, die sich in der zweiten Spalte befinden und nicht mit „lib“ beginnen oder „zoom“ oder „microsoft“ enthalten, und druckt sie aus.

Anschließend können Sie die Liste manuell durchsuchen und alle eindeutig Ubuntu-spezifischen Pakete entfernen, beispielsweise Ubuntu-Hintergrundbilder.

Beachten Sie, dass, sofern sich nichts in apt geändert hat, apt install auf apt-get install abgebildet wird. Wenn Sie versuchen, eine Liste von Paketen zu installieren, von denen nicht alle installierbar sind, funktioniert dies nicht und wird einfach beendet, weil es fehlgeschlagen ist. Ein Fehler tritt auf, wenn irgendetwas in der Liste nicht als Paket im von Ihnen verwendeten Pool vorhanden war.

Früher habe ich solche Dinge gemacht, indem ich die Liste durchgegangen bin und mit apt-get jedes Paket in der Liste installiert habe, um dieses Problem zu vermeiden.

for item in $(cat installed.txt);do apt-get --no-install-recommends install $item;done

Sie können die Annahme aller Pakete erzwingen und nicht mit der Option -y nachfragen, aber das ist keine gute Idee, da Sie kontrollieren möchten, was tatsächlich installiert wird. Im Grunde drücken Sie einfach jedes Mal die Eingabetaste, wenn Sie gefragt werden, ob Sie die zusätzlichen Abhängigkeiten installieren möchten. Es dauert nicht lange, die Liste durchzugehen.

Beachten Sie, dass Sie Installationsempfehlungen mit --no-install-recommends deaktivieren möchten, da Sie sonst ein schreckliches Durcheinander bekommen. Ich deaktiviere es immer in /etc/apt-Konfigurationen, aber das geht über den Rahmen Ihrer Frage hinaus.

Außerdem ist es gut zu wissen, dass apt selbst Pakete verfolgt, die es als Abhängigkeiten eingespielt hat, wenn ein anderes Paket installiert wird, und wenn diese während eines Upgrades durch neuere Versionen ersetzt werden, werden diese nun veralteten Pakete von apt-get remove deinstalliert, um das System zu bereinigen. Wenn Sie bestimmte nummerierte Bibliotheksversionen direkt mit apt-get install installieren, bietet apt möglicherweise nicht an, diese zu entfernen, wenn sie durch neuere Versionen ersetzt werden, selbst wenn sie im Pool vorhanden sind. Dies kann zu einem überfüllten System führen.

Mint hat im Allgemeinen alte Pakete, Sie können nicht erwarten, dass die beiden Paketpools tatsächlich übereinstimmen, obwohl die neueste Version nicht so alt ist, wie sie in ein oder zwei Jahren sein wird.

Wie schlimm es für Sie ausgehen wird, können Sie ungefähr anhand der folgenden Angaben abschätzen:

inxi -r

Dadurch werden Ihre aktuellen Repositories aufgelistet. Je mehr PPAs Sie vorhanden haben, desto schlimmer wird es. Null PPAs sind die ideale Zahl, aber wenn Sie viele haben, wird es einfach chaotisch. Der Befehl „loop install“ vermeidet jedoch die meisten der schlimmsten Teile.

Ich verwende Mint nicht wirklich, daher weiß ich nicht mehr, wie sie PPAs erstellen, aber es wird mit ziemlicher Sicherheit fehlschlagen, da Ubuntu und Mint NICHT kompatibel sind. Sie teilen viele Pakete zwischen der Ubuntu-Version, von der Mint gezogen wurde, und dem Mint, das Sie installieren, aber Sie werden weiterhin Fehler erhalten, bis Sie die Loop-Paketinstallation durchführen.

verwandte Informationen