You are not logged in.

#1 2023-05-17 00:48:38

ynn
Member
Registered: 2019-09-19
Posts: 1

pacman -Sy succeeded but no files are installed

I executed `sudo pacman -Sy certbot` to install `certbot`.

After the installation, executing the `certbot` command gives the following error:
```
Traceback (most recent call last):
  File "/usr/bin/certbot", line 5, in <module>
    from certbot.main import main
ModuleNotFoundError: No module named 'certbot'
```

To check which files are installed by the package, I executed `sudo pacman -Fl certbot`:
```
(snip)
certbot usr/bin/certbot
certbot usr/lib/
certbot usr/lib/python3.8/
certbot usr/lib/python3.8/site-packages/
(snip)
certbot usr/lib/python3.8/site-packages/certbot/__init__.py
(snip)
```

However, `ls /usr/lib/python3.8/site-packages/certbot/` gives the following error:
```
"/usr/lib/python3.8/site-packages/certbot/": No such file or directory (os error 2)
```

Is this a bug of `pacman`?

Last edited by ynn (2023-05-17 00:49:04)

Offline

#2 2023-05-17 01:12:46

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,676

Re: pacman -Sy succeeded but no files are installed

Try -Syu instead of -Sy.

Others will no doubt be along soon to give you the "partial upgrades are not supported" lecture

Last edited by skunktrader (2023-05-17 01:15:16)

Offline

#3 2023-05-17 01:44:14

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

Re: pacman -Sy succeeded but no files are installed

Partial upgrades are only a part of the problem: it looks like* you haven't updated in well over three years!

You should really install a distro more suited to your use.

edit: *looks can be deceiving.  Perhaps just your files database is ancient.

Last edited by Trilby (2023-05-17 13:09:44)


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

Offline

#4 2023-05-17 06:04:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,244

Re: pacman -Sy succeeded but no files are installed

I executed `sudo pacman -Fl certbot`

Offline

#5 2023-05-17 06:34:12

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,389

Re: pacman -Sy succeeded but no files are installed

don't run pacman -Sy (also not -Syuw; -Sy packagename); it will probably give you non-updated dependency issues, especially if you haven't updated in 3 years.

EDIT: thought i read -Syu packagename somewhere, nevermind.

Last edited by jl2 (2023-05-20 18:20:53)


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

#6 2023-05-17 07:10:29

polarrr
Member
Registered: 2004-09-12
Posts: 111

Re: pacman -Sy succeeded but no files are installed

jl2 wrote:

don't run pacman -Sy (also not -Syuw; -Syu packagename; -Sy packagename); it will probably give you non-updated dependency issues, especially if you haven't updated in 3 years.
always run pacman -Syu and then run pacman -S packagename

Wouldn't pacman -Syu packagename just add a package to the list of packages that gets updated through -Syu?

Offline

#7 2023-05-17 07:22:41

antrikshtyagi
Member
Registered: 2023-05-17
Posts: 1

Re: pacman -Sy succeeded but no files are installed

Trilby wrote:

Partial upgrades are only a part of the problem: it looks like you haven't updated in well over three years!

You should really install a distro more suited to your use.

That would also imply a really old version of Linux kernel :/

Last edited by antrikshtyagi (2023-05-17 07:22:54)

Offline

#8 2023-05-17 09:22:25

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,248

Re: pacman -Sy succeeded but no files are installed

As hinted at by seth, it's more likely their file database is simply out of date. As already mentioned, use -Syu certbot to fully update the system and installc certbot, partial upgrades are not supported: https://wiki.archlinux.org/title/System … nsupported

Offline

#9 2023-05-17 10:09:52

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: pacman -Sy succeeded but no files are installed

jl2 wrote:

don't run pacman -Sy (also not -Syuw; -Syu packagename; -Sy packagename); it will probably give you non-updated dependency issues, especially if you haven't updated in 3 years.
always run pacman -Syu and then run pacman -S packagename

Unless you can explain in detail, why you think -Syu packagename is problematic, I call FUD.

Offline

#10 2023-05-17 11:59:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,244

Re: pacman -Sy succeeded but no files are installed

"-Syuw" isn't inherently wrong either - you're just preparing to actually update later on and priming the cache this way.
You just need to be aware that you did this, so the next call shall not be "-S foo" but "-Su" (or "-Su foo")

While technically you're setting yourself up for a partial update, this call at least has legitimacy, eg. if you've inconsistent internet access and "time slot online" != "time slot ready for update" and is most likely "intentionally cause I know waht I'm doing"

Offline

#11 2023-05-20 18:25:20

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,389

Re: pacman -Sy succeeded but no files are installed

btw you should maybe read the huge text in the forum rules .


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

Board footer

Powered by FluxBB