apt-get "Paket konnte nicht gefunden werden" mit einem Glob

454
Rolf

Ich versuche den Pantheon-Desktop zu deinstallieren. Ich benutze einen Sternenkugel, um alle Pakete zu deinstallieren, deren Name mit "pantheon-" beginnt.

rolf@DRGMC01:~$ sudo apt-get remove pantheon-* Reading package lists... Done Building dependency tree  Reading state information... Done E: Unable to locate package pantheon-debian-repos_0.4-0+pantheon+stretch+loki1_all.deb E: Couldn't find any package by glob 'pantheon-debian-repos_0.4-0+pantheon+stretch+loki1_all.deb' E: Couldn't find any package by regex 'pantheon-debian-repos_0.4-0+pantheon+stretch+loki1_all.deb' 

OK, lass uns das fehlende Paket dann installieren.

rolf@DRGMC01:~$ sudo apt-get install pantheon-debian-repos Reading package lists... Done Building dependency tree  Reading state information... Done The following NEW packages will be installed: pantheon-debian-repos 0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded. Need to get 3,682 B of archives. After this operation, 19.5 kB of additional disk space will be used. Get:1 http://gandalfn.ovh/debian stretch-loki/main amd64 pantheon-debian-repos all 0.4-0+pantheon+stretch+loki1 [3,682 B] Fetched 3,682 B in 0s (12.2 kB/s)  Selecting previously unselected package pantheon-debian-repos. (Reading database ... 180511 files and directories currently installed.) Preparing to unpack .../pantheon-debian-repos_0.4-0+pantheon+stretch+loki1_all.deb ... Unpacking pantheon-debian-repos (0.4-0+pantheon+stretch+loki1) ... Setting up pantheon-debian-repos (0.4-0+pantheon+stretch+loki1) ... Importing pantheon-debian keyring Warning: apt-key should not be used in scripts (called from postinst maintainerscript of the package pantheon-debian-repos) OK 

Vielleicht jetzt?

rolf@DRGMC01:~$ sudo apt-get remove pantheon-* --ignore-missing Reading package lists... Done Building dependency tree  Reading state information... Done E: Unable to locate package pantheon-debian-repos_0.4-0+pantheon+stretch+loki1_all.deb E: Couldn't find any package by glob 'pantheon-debian-repos_0.4-0+pantheon+stretch+loki1_all.deb' E: Couldn't find any package by regex 'pantheon-debian-repos_0.4-0+pantheon+stretch+loki1_all.deb' 

Ist es wirklich installiert?

rolf@DRGMC01:~$ dpkg -l |grep '^ii panth' ii pantheon-agent-polkit 0.1.4-0+pantheon+stretch+loki1+r1 amd64 Polkit authorization designed for Pantheon ii pantheon-debian-repos 0.4-0+pantheon+stretch+loki1 all Pantheon Debian Repository configuration ii pantheon-dpms-helper 1:0.4.3.1+bzr235-0+pantheon+stretch+loki2 all script and settings for X DPMS ii pantheon-mail 1.0.6-0+pantheon+stretch+loki1+r1 amd64 Email client  etc. 

Was geht hier vor sich?

  • Warum sollte apt-get kein installiertes Paket sehen?
  • Warum sollte es dieses Paket überhaupt interessieren?
1

1 Antwort auf die Frage

3
AFH

Es sieht so aus, als hätten Sie sich pantheon-debian-repos_0.4-0+pantheon+stretch+loki1_all.debin Ihrem aktuellen Verzeichnis und werden pantheon-*von der Shell darauf erweitert.

Was Sie brauchen, ist:

sudo apt-get remove 'pantheon-*' 

oder:

sudo apt-get remove "pantheon-*" 
ooooh ja ich habe es mein Heimatverzeichnis, aus irgendeinem Grund war ich überrascht, es dort zu finden, dachte aber nicht, dass es einen solchen Effekt haben würde Rolf vor 5 Jahren 0
Verdammt richtig `echo sudo apt-get remove pantheon- *` Rückkehr `sudo apt-get entfernen pantheon-debian-repos_0.4-0 + pantheon + stretch + loki1_all.deb` Rolf vor 5 Jahren 0