You are not logged in.
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
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
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
I executed `sudo pacman -Fl certbot`
Offline
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...
Offline
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
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
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
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
"-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
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...
Offline