Skip to main content
Topic: error: target not found: certbot (Read 846 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

error: target not found: certbot

Since yesterday, I am not able to install certbot.


Code: [Select]
$ 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/`).

Code: [Select]
$ 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.

Code: [Select]
$ 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.

Code: [Select]
$ 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

 

Re: error: target not found: certbot

Reply #1
certbot is a package from community, which is an Arch repository, not an Artix repository.

There is no Artix package for certbot. You can check yourself on https://gitea.artixlinux.org.

Edit: You need to activate Arch repositories in order to install packages from them.

Arch repositories are not activated by default. There was a news item when that was made official. You should check Artix news from time to time to always stay up to date on recent development.

Re: error: target not found: certbot

Reply #2
certbot is a package from community, which is an Arch repository, not an Artix repository.

There is no Artix package for certbot. You can check yourself on https://gitea.artixlinux.org.

Edit: You need to activate Arch repositories in order to install packages from them.

Arch repositories are not activated by default. There was a news item when that was made official. You should check Artix news from time to time to always stay up to date on recent development.

I see, thanks a lot :)