E: Unable to locate package error

Everything about X, Gnome, KDE, ... and everything running on it

E: Unable to locate package error

Postby shogun1234 » 2019-12-08 15:34

It's my fault that I tried installing pantheon by following the url - https://linuxconfig.org/how-to-install- ... -on-debian. But after installation, instead of purge first, I've removed some links in apt and some other operations that I can not remember now. So now (repos link in /etc/apt/source.list.d/appcenter.lst was removed) debian complains following error, when trying to uninstall by apt-get purge pantheon-*

Code: Select all

E: Unable to locate package pantheon-debian-repos_5.0-0+pantheon+buster+juno1_all.deb
E: Couldn't find any package by glob 'pantheon-debian-repos_5.0-0+pantheon+buster+juno1_all.deb'
E: Couldn't find any package by regex 'pantheon-debian-repos_5.0-0+pantheon+buster+juno1_all.deb'


But I am sure that deb is still in the file sytem at its path. Even reinstall pantheon-debian-repos_5.0-0+pantheon+buster+juno1_all.deb, debian apt still complains this error. And pantheon-* lib still there as it shows

Code: Select all
$ apt-cache search pantheon
arc-theme - Flat theme with transparent elements
gala - Pantheon Window Manager
libgala0 - Library to build plugins for Pantheon Window Manager
pantheon-debian-repos - Pantheon Debian Repository configuration
pantheon-greeter - Pantheon Login Screen
pantheon-terminal - Modern terminal from elementary project



How can I remove pantheon completely?

I use bullseye/sid, uname -r 5.2.0-2-amd64
shogun1234
 
Posts: 121
Joined: 2006-07-13 08:04

Re: E: Unable to locate package error

Postby NFT5 » 2019-12-09 02:29

Have you looked in your logs? (/var/log/apt/history.log)
User avatar
NFT5
 
Posts: 369
Joined: 2014-10-10 11:38
Location: Canberra, Australia

Re: E: Unable to locate package error

Postby shogun1234 » 2019-12-09 08:25

NFT5 wrote:Have you looked in your logs? (/var/log/apt/history.log)


Don't know why but it looks like it can be removed now.

Code: Select all
$ sudo apt-get purge pantheon*
[sudo] password for jason:         
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'pantheon-agent-polkit' for glob 'pantheon*'
Note, selecting 'pantheon-photos' for glob 'pantheon*'
Note, selecting 'pantheon-default-settings' for glob 'pantheon*'
Note, selecting 'pantheon-shell' for glob 'pantheon*'
Note, selecting 'pantheon-photos-common' for glob 'pantheon*'
Note, selecting 'pantheon-agent-geoclue2' for glob 'pantheon*'
Note, selecting 'pantheon-terminal' for glob 'pantheon*'
Note, selecting 'pantheon-xsession-settings' for glob 'pantheon*'
Package 'pantheon-terminal' is not installed, so not removed
Package 'pantheon-photos-common' is not installed, so not removed
Package 'pantheon-shell' is not installed, so not removed
The following packages will be REMOVED:
  pantheon-agent-geoclue2* pantheon-agent-polkit* pantheon-default-settings*
  pantheon-photos* pantheon-xsession-settings*
0 upgraded, 0 newly installed, 5 to remove and 409 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 301118 files and directories currently installed.)
Purging configuration files for pantheon-agent-polkit (0.1.6-0+pantheon+buster+juno1) ...
Purging configuration files for pantheon-agent-geoclue2 (1.0.1-0+pantheon+buster+juno1) ...
Purging configuration files for pantheon-xsession-settings (5.0.3-0+pantheon+buster+juno1) ...
Purging configuration files for pantheon-default-settings (1:5.0-0+pantheon+buster+juno1) ...
Purging configuration files for pantheon-photos (2.6.4-0+pantheon+buster+juno1) ...
Processing triggers for menu (2.1.47+b1) ...



From the apt history log, it shows

Code: Select all
Start-Date: 2019-12-08  16:43:47
Commandline: apt-get install pantheon
Requested-By: jason (1000)
...


Code: Select all
Start-Date: 2019-12-08  16:48:34
Commandline: apt-get purge pantheon
Requested-By: jason (1000)
Purge: pantheon:amd64 (5.0.2-0+pantheon+buster+juno1)
End-Date: 2019-12-08  16:48:35



Code: Select all
Start-Date: 2019-12-08  16:49:37
Commandline: apt autoremove pantheon
Requested-By: jason (1000)
...


Code: Select all
Start-Date: 2019-12-08  17:01:22
Commandline: apt-get upgrade -y --allow-downgrades
Requested-By: jason (1000)
Upgrade: ...


Code: Select all
Start-Date: 2019-12-08  17:08:45
Commandline: apt-get upgrade -y
Requested-By: jason (1000)
Upgrade: ...


Code: Select all
Start-Date: 2019-12-08  17:24:41
Commandline: apt-get purge pantheon-terminal
Requested-By: jason (1000)
Purge: pantheon-terminal:amd64 (5.3.5-0+pantheon+buster+juno1)
End-Date: 2019-12-08  17:24:45

Start-Date: 2019-12-08  17:24:51
Commandline: apt-get purge pantheon-debian-repos
Requested-By: jason (1000)
Purge: pantheon-debian-repos:amd64 (5.0-0+pantheon+buster+juno1)
End-Date: 2019-12-08  17:24:53

Start-Date: 2019-12-08  17:24:58
Commandline: apt-get purge pantheon-greeter
Requested-By: jason (1000)
Purge: pantheon-greeter:amd64 (3.3.1-0+pantheon+buster+juno5)
End-Date: 2019-12-08  17:24:59



Code: Select all
Start-Date: 2019-12-08  17:43:19
Commandline: apt autoremove
Requested-By: jason (1000)
Remove: ...


Code: Select all
Start-Date: 2019-12-08  19:11:45
Commandline: apt-get purge pantheon-debian-repos
Requested-By: jason (1000)
Purge: pantheon-debian-repos:amd64 (5.0-0+pantheon+buster+juno1)
End-Date: 2019-12-08  19:11:46



Code: Select all
Start-Date: 2019-12-09  08:50:59
Commandline: apt-get purge pantheon*
Requested-By: jason (1000)
Purge: pantheon-agent-polkit:amd64 (), pantheon-photos:amd64 (), pantheon-default-settings:amd64 (), pantheon-agent-geoclue2:amd64 (), pantheon-xsession-settings:amd64 ()
End-Date: 2019-12-09  08:51:01



It's a bit weird because yesterday I completely couldn't remove pantheon's (hence the error message can't locate blah blah blah) packages. But today it suddenly can be removed. But from the log I don't see any commands I issued causing the change, except allow downgarde options, but yesterday even after downgrade allowed is passed as parameter, the error still persisted. It's really a puzzle for me...
shogun1234
 
Posts: 121
Joined: 2006-07-13 08:04

Re: E: Unable to locate package error

Postby p.H » 2019-12-09 08:35

My guess is that when you previously ran the command, the current directory contained a file named "pantheon-debian-repos_5.0-0+pantheon+buster+juno1_all.deb" so the shell expanded "pantheon-*" into "pantheon-debian-repos_5.0-0+pantheon+buster+juno1_all.deb", which is not a valid package name expression.
p.H
 
Posts: 1291
Joined: 2017-09-17 07:12


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 13 guests

fashionable