You are not logged in.

#1 2023-07-23 12:38:22

FatalErrorDriveB
Member
Registered: 2020-08-15
Posts: 10

Running pacman -Qdt show packages that don't exist?

Sorry about the odd title I couldn't make it long enough to describe things properly.
When I run `pacman -Qdt` I see a short list of things I no longer need. Things I at one point removed. However if I try and remove those packages it tells me "No such file or directory." If those don't exist why do they keep showing every time I run the Qdt command?

Thanks for any help. I'm still new to Arch and am working on learning.

Offline

#2 2023-07-23 12:40:29

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,466
Website

Re: Running pacman -Qdt show packages that don't exist?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-07-23 13:03:43

FatalErrorDriveB
Member
Registered: 2020-08-15
Posts: 10

Re: Running pacman -Qdt show packages that don't exist?

Thank you for that. I wasn't familiar with the journalctl, yet. Forgive me if this is a dumb question but I can't get any info from journalctl about pacman when I run my commands.
Running

journalctl --since "5 min ago"

Gives me this:

Jul 23 08:56:14 archlinux NetworkManager[538]: <warn>  [1690116974.9880] ndisc[0x55b050981730,"wlan0"]: solicit: failure sending router solicitation: Operation not permitted (1)
Jul 23 08:57:05 archlinux NetworkManager[538]: <warn>  [1690117025.9627] ndisc[0x55b050981730,"wlan0"]: solicit: failure sending router solicitation: Operation not permitted (1)
Jul 23 08:57:49 archlinux NetworkManager[538]: <warn>  [1690117069.9619] ndisc[0x55b050981730,"wlan0"]: solicit: failure sending router solicitation: Operation not permitted (1)
Jul 23 08:58:24 archlinux systemd[734]: Started VTE child process 143783 launched by gnome-terminal-server process 27539.
Jul 23 08:58:40 archlinux NetworkManager[538]: <warn>  [1690117120.2082] ndisc[0x55b050981730,"wlan0"]: solicit: failure sending router solicitation: Operation not permitted (1)
Jul 23 08:59:39 archlinux NetworkManager[538]: <warn>  [1690117179.1912] ndisc[0x55b050981730,"wlan0"]: solicit: failure sending router solicitation: Operation not permitted (1)
Jul 23 09:00:13 archlinux NetworkManager[538]: <warn>  [1690117213.9619] ndisc[0x55b050981730,"wlan0"]: solicit: failure sending router solicitation: Operation not permitted (1)

Not sure why there's so many warnings, but as far as I can tell that has nothing to do with my issue. Again, I'm still new, and learning, please forgive any obvious dumb mistakes I'm making.

Offline

#4 2023-07-23 13:08:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: Running pacman -Qdt show packages that don't exist?

The point was that was need the *actual* output, not your interpretation. journalctl won't play into this at all.

Offline

#5 2023-07-23 13:14:26

FatalErrorDriveB
Member
Registered: 2020-08-15
Posts: 10

Re: Running pacman -Qdt show packages that don't exist?

I'm so sorry. Here's the output if the command.

electron22 22.3.18-1
gnome-desktop-4 1:44.0-1
go 2:1.20.6-1
java-service-wrapper 3.5.51-1
miniupnpc 2.2.4-2
networkmanager-openvpn 1.10.2-3
python-gpgme 1.21.0-1
python-pyqt5 5.15.9-2
python-pysocks 1.7.1-8
ripgrep 13.0.0-3
zip 3.0-10

And here's what happens when I run:

sudo pacman -R $(pacman -Qdt)
error: target not found: 22.3.18-1
error: target not found: 1:44.0-1
error: target not found: 2:1.20.6-1
error: target not found: 3.5.51-1
error: target not found: 2.2.4-2
error: target not found: 1.10.2-3
error: target not found: 1.21.0-1
error: target not found: 5.15.9-2
error: target not found: 1.7.1-8
error: target not found: 13.0.0-3
error: target not found: 0.4.7.13-2
error: target not found: 3.0-10

Last edited by FatalErrorDriveB (2023-07-23 13:16:16)

Offline

#6 2023-07-23 13:16:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,466
Website

Re: Running pacman -Qdt show packages that don't exist?

I take it that's the output from one of the commands - specifically `pacman -Qdt`.  But we need to see the command and output that generated the error you referred to.  You said you tried to remove (some of) these packages and got an error.  Post that command and error message ... verbatim. (edit: cross posted while you were editing).

That should be

sudo pacman -R $(pacman -Qdtq)

Also note that the error message you quoted in the first post was not incorrect: you did not get a "No such file or directory" error.  In the future start by posting the actual commands and errors in the first post; having the correct information right off the bat will get to the solutions much faster.

Also note that you should include the 's' flag with the -R, and possibly also the 'n', e.g.:

pacman -Rsn $(pacman -Qdtq)

But read the man page on what those flags are first.

Last edited by Trilby (2023-07-23 13:39:43)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2023-07-23 13:18:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: Running pacman -Qdt show packages that don't exist?

Because there is no package named 22.3.18-1 or 1:44.0-1, etc. By default, -Q gives the packages with the versions, if you want only the package names, you need another -q

Offline

#8 2023-07-23 13:20:29

FatalErrorDriveB
Member
Registered: 2020-08-15
Posts: 10

Re: Running pacman -Qdt show packages that don't exist?

Thank you, I was unaware of that. And I apologize for not posting the full output in the first post. I'll be sure to do that in the future.

Thank you everyone for your help!

Offline

Board footer

Powered by FluxBB