ERROR: Selected product uses "PBM" repositories. But the "PBM" repository is disabled

Hi,

Following steps to install e configure agents, have had this error:

first and before error, i did:
> root@9e8e067728eb:/# percona-release setup pbm

 * Disabling all Percona Repositories
  ERROR: Selected product uses "PBM" repositories. But the "PBM" repository is disabled
  Add "PBM" repository to REPOSITORIES="" variable in /etc/default/percona-release file and re-run 
 the script

After that, and created file “percona-release”

   > root@9e8e067728eb:/# echo REPOSITORIES=\"PBM\">>/etc/default/percona-release
   root@9e8e067728eb:/# cat /etc/default/percona-release
   REPOSITORIES="PBM"
   root@9e8e067728eb:/#  percona-release setup pbm
   * Disabling all Percona Repositories
   * Enabling the Percona Original repository
   Ign:1 h t t p://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 InRelease
   Hit:2 h t t p://archive.ubuntu.com/ubuntu focal InRelease
   Get:3 h t t p ://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
   Hit:4 h t t p ://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 Release
   Get:5 h t t p://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
   Get:6 h t t p://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
   Ign:7 h t t p ://repo.percona.com/PBM/apt focal InRelease
   Hit:9 h t t p://repo.percona.com/prel/apt focal InRelease
   Get:10 h t t p://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1183 kB]
   **Err:11 h t t p://repo.percona.com/PBM/apt focal Release**

** 404 Not Found [IP: 147.135.54.159 80]**
Get:12 Index of /ubuntu focal-updates/main amd64 Packages [2558 kB]
Reading package lists… Done
E: The repository ‘h t t p://repo.percona.com/PBM/apt focal Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Note : Err:11 h t t p ://repo.percona.com/PBM/apt focal Release , does not exist, and if i replace “PBM” for “pbm” link exists now, but how i do that in the process, because if i change on the “/etc/default/percona-release” , continue wrong,

for example:

root@9e8e067728eb:/# rm /etc/default/percona-release
rm: cannot remove ‘/etc/default/percona-release’: No such file or directory
root@9e8e067728eb:/# echo REPOSITORIES="pbm">>/etc/default/percona-release
root@9e8e067728eb:/# cat /etc/default/percona-release
REPOSITORIES=“pbm”
root@9e8e067728eb:/# percona-release setup pbm

  • Disabling all Percona Repositories
    ERROR: Selected product uses “PBM” repositories. But the “PBM” repository is disabled
    Add “PBM” repository to REPOSITORIES=“” variable in /etc/default/percona-release file and re-run the script
1 Like

Hello, you shouldn’t have to edit files manually. After installing percona-release package run:

percona-release setup tools

that should enable the repo where pbm lives and fix any issues

1 Like