Since yesterday, I am not able to install certbot.
$ sudo pacman -Syuyuy certbot
:: Synchronizing package databases...
system 281.0 KiB 927 KiB/s 00:00 [##############################] 100%
world 1967.4 KiB 11.7 MiB/s 00:00 [##############################] 100%
galaxy 2.0 MiB 16.8 MiB/s 00:00 [##############################] 100%
error: target not found: certbot
I am pretty sure I was able to do that before. I even have the old packages in the cache (ie `/var/cache/pacman/pkg/`).
$ ls /var/cache/pacman/pkg | grep certbot
certbot-1.15.0-1-any.pkg.tar.zst
certbot-1.16.0-1-any.pkg.tar.zst
certbot-nginx-1.15.0-1-any.pkg.tar.zst
certbot-nginx-1.16.0-1-any.pkg.tar.zst
I am also pretty sure I didn't uninstall it. I'm not sure why it got removed.
EDIT: It seems that the package is still installed. Because when I run `sudo pacman -U /var/cache/pacman/pkg/certbot-1.16.0-1-any.pkg.tar.zst` it reinstalls it.
$ sudo pacman -U /var/cache/pacman/pkg/certbot-1.16.0-1-any.pkg.tar.zst
loading packages...
warning: certbot-1.16.0-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) certbot-1.16.0-1
Total Installed Size: 1.25 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [##############################] 100%
(1/1) checking package integrity [##############################] 100%
(1/1) loading package files [##############################] 100%
(1/1) checking for file conflicts [##############################] 100%
(1/1) checking available disk space [##############################] 100%
:: Processing package changes...
(1/1) reinstalling certbot [##############################] 100%
But it still doesn't work properly.
$ sudo certbot renew
Traceback (most recent call last):
File "/usr/bin/certbot", line 33, in <module>
sys.exit(load_entry_point('certbot==1.16.0', 'console_scripts', 'certbot')())
File "/usr/bin/certbot", line 22, in importlib_load_entry_point
for entry_point in distribution(dist_name).entry_points
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 919, in distribution
return Distribution.from_name(distribution_name)
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 518, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for certbot