cephadm error: add-repo does not have a release file - ceph

I follow the instruction in ceph doc
But, to summarize, this is why I did. Please note that this error occur with the previous release, such as Pacific and Nautilus.
curl --silent --remote-name --location https://github.com/ceph/ceph/raw/quincy/src/cephadm/cephadm
chmod +x cephadm
./cephadm add-repo --release quincy
Here is the error, I copied the whole thing.
Installing repo GPG key from https://download.ceph.com/keys/release.gpg...
Installing repo file at /etc/apt/sources.list.d/ceph.list...
Updating package list...
Non-zero exit code 100 from apt-get update
apt-get: stdout Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
apt-get: stdout Hit:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
apt-get: stdout Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
apt-get: stdout Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-security InRelease
apt-get: stdout Ign:5 https://download.ceph.com/debian-quincy jammy InRelease
apt-get: stdout Err:6 https://download.ceph.com/debian-quincy jammy Release
apt-get: stdout 404 Not Found [IP: 158.69.68.124 443]
apt-get: stdout Reading package lists...
apt-get: stderr E: The repository 'https://download.ceph.com/debian-quincy jammy Release' does not have a Release file.
Traceback (most recent call last):
File "/home/test/./cephadm", line 9491, in <module>
main()
File "/home/test/./cephadm", line 9479, in main
r = ctx.func(ctx)
File "/home/test/./cephadm", line 7956, in command_add_repo
pkg.add_repo()
File "/home/test/./cephadm", line 7578, in add_repo
self.update()
File "/home/test/./cephadm", line 7599, in update
call_throws(self.ctx, ['apt-get', 'update'])
File "/home/test/./cephadm", line 1787, in call_throws
raise RuntimeError(f'Failed command: {" ".join(command)}: {s}')
RuntimeError: Failed command: apt-get update: E: The repository 'https://download.ceph.com/debian-quincy jammy Release' does not have a Release file.

At the moment where I write this answer, there are no repositories for Ubuntu 22.04 yet, there are packages compiled by Canonical for Ubuntu 22.04.
In the doc, follow the instructions under the section: DISTRIBUTION-SPECIFIC INSTALLATIONS

Related

Can't install mongodb for ubuntu

Trying to install mongodb for ubuntu and can't solve the issue.
I got lost, need your help please!
Going according the docs:
https://www.mongodb.com/docs/master/tutorial/install-mongodb-on-ubuntu/
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
Result (CLI output): on mine ubuntu:
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
Result (CLI output):
deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse
sudo apt-get update
Result (CLI output):
et:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Ign:2 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 InRelease
Hit:3 http://packages.microsoft.com/repos/code stable InRelease
Hit:4 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy InRelease
Hit:5 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 Release
Ign:6 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 InRelease
Hit:7 http://il.archive.ubuntu.com/ubuntu jammy InRelease
Ign:8 https://ppa.launchpadcontent.net/upubuntu-com/xampp/ubuntu jammy InRelease
Hit:9 http://il.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:11 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 Release
Hit:12 http://il.archive.ubuntu.com/ubuntu jammy-backports InRelease
Err:13 https://ppa.launchpadcontent.net/upubuntu-com/xampp/ubuntu jammy Release
404 Not Found [IP: 185.125.190.52 443]
Reading package lists... Done
W: http://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/4.0/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
E: The repository 'https://ppa.launchpadcontent.net/upubuntu-com/xampp/ubuntu jammy 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.
W: https://repo.mongodb.org/apt/ubuntu/dists/focal/mongodb-org/6.0/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
sudo apt-get install -y mongodb-org
Result (CLI output):
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mongodb-org-mongos : Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
mongodb-org-server : Depends: libcurl3 (>= 7.16.2) but it is not installable
Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
mongodb-org-shell : Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
mongodb-org-tools : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
E: Unable to correct problems, you have held broken packages.
uname -m
Result (CLI output):
x86_64
lsb_release -a
Result (CLI output):
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
Good evening, I was having the same problem which was basically the lack of libssl1.1
What I did to solve it was to add the repository that contains this lib to download, in this case I used the focal repository.
Use this command in your terminal to add it to your system:
echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
Then do an update:
sudo apt-get update
And finally install the library:
sudo apt install libssl1.1
After installed try to install mongodb again, if it worked I'm glad to have helped you, if the problem persists I don't know how I can help you :(

The repository 'https://apt.postgresql.org/pub/repos/apt trusty-pgdg Release' does not have a Release file

Linux Mint 20.2
I want to install PgAdmin4.
Here OFFICIAL TUTORIAL
https://www.pgadmin.org/download/pgadmin-4-apt/
Steps:
sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3935 100 3935 0 0 4517 0 --:--:-- --:--:-- --:--:-- 4512
sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
Result:
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://archive.canonical.com/ubuntu focal InRelease
Hit:5 http://ppa.launchpad.net/kelleyk/emacs/ubuntu focal InRelease
Hit:6 http://apt.postgresql.org/pub/repos/apt bionic-pgdg InRelease
Hit:7 https://repo.skype.com/deb stable InRelease
Hit:8 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:9 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:10 http://security.ubuntu.com/ubuntu focal-security InRelease
Ign:11 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/uma pgadmin4 InRelease
Ign:12 http://packages.linuxmint.com uma InRelease
Ign:13 https://apt.postgresql.org/pub/repos/apt trusty-pgdg InRelease
Err:14 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/uma pgadmin4 Release
404 Not Found [IP: 147.75.85.69 443]
Err:15 https://apt.postgresql.org/pub/repos/apt trusty-pgdg Release
404 Not Found [IP: 147.75.85.69 443]
Hit:16 http://packages.linuxmint.com uma Release
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease' doesn't support architecture 'i386'
E: The repository 'https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/uma pgadmin4 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.
E: The repository 'https://apt.postgresql.org/pub/repos/apt trusty-pgdg 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.
Error:
E: The repository 'https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/uma pgadmin4 Release' does not have a Release file.
Please try to change /etc/apt/sources.list.d/pgadmin4.list file lines to deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/bionic pgadmin4 main
Bad tutorial boys
Widuranga Dilruksha already solved op question. But i just want to expand it.
The following steps have to be performed on terminal
Execute: sudo nano /etc/apt/sources.list.d/pgadmin4.list
Delete everything you see there and paste the following text: deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/bionic pgadmin4 main
Save Changes by pressing Ctrl + x then Y and finally enter
Execute: sudo apt install pgadmin4
Done. I Hope it clarifies the answer.
In my case the repo file was /etc/apt/sources.list.d/pgdg.list (Elementary OS 6).
The other answers don't cover the case where, sudo apt update raises:
W: GPG error: https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/bionic pgadmin4 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8881B2A8210976F2
What solved this error was to get the PUBKEY 8881B2A8210976F2 and execute:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8881B2A8210976F2
Afterwards I was able to sudo apt update and then install postgres.
Check if the version you want it is still supported
https://www.debian.org/releases/
https://wiki.postgresql.org/wiki/Apt#News
I do agree with all other answers but before running
sudo apt install pgadmin4
You have to update apt and this is made by
Executing the following command int terminal
sudo apt update

Cannot install MongoDB on Beaglebone Green

The installation of MongoDB is still unsuccessful on the BeagleBone Green card.
More information about this BBG:
debian#beaglebone:/var/lib/cloud9$ uname -a
Linux beaglebone 4.9.82-ti-r102 #1 SMP PREEMPT Thu Feb 22 01:16:12 UTC 2018 armv7l GNU/Linux
debian#beaglebone:/var/lib/cloud9$ cat /etc/*-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Even I tried to follow this tutorial : https://docs.mongodb.com/v3.0/tutorial/install-mongodb-on-debian/ as below :
debian#beaglebone:/var/lib/cloud9$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
Executing: /tmp/apt-key-gpghome.jgT79mhjhQ/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
gpg: key 58712A2291FA4AD5: "MongoDB 3.6 Release Signing Key <packaging#mongodb.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
debian#beaglebone:/var/lib/cloud9$ echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.6 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.6 main
debian#beaglebone:/var/lib/cloud9$ echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/{+package-branch+} main" | sudo tee /etc/apt/sources.list.d/mongodb-org-{+version+}.list
deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/{+package-branch+} main
debian#beaglebone:/var/lib/cloud9$ sudo apt-get update
Ign:1 http://deb.debian.org/debian stretch InRelease
Hit:2 http://deb.debian.org/debian stretch-updates InRelease
Get:3 http://deb.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Ign:4 http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.6 InRelease
Hit:5 http://repos.rcn-ee.com/debian stretch InRelease
Hit:6 http://deb.debian.org/debian stretch Release
Get:7 http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.6 Release [2393 B]
Get:8 http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.6 Release.gpg [801 B]
Fetched 97.5 kB in 5s (17.8 kB/s)
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.6 InRelease' doesn't support architecture 'armhf'
debian#beaglebone:/var/lib/cloud9$ sudo apt-get install -y mongodb-org
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mongodb-org
debian#beaglebone:/var/lib/cloud9$ sudo apt-get install -y mongodb-org=3.6.4 mongodb-org-server=3.6.4 mongodb-org-shell=3.6.4 mongodb-org-mongos=3.6.4 mongodb-org-tools=3.6.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mongodb-org
E: Unable to locate package mongodb-org-server
E: Unable to locate package mongodb-org-shell
E: Unable to locate package mongodb-org-mongos
E: Unable to locate package mongodb-org-tools
debian#beaglebone:/var/lib/cloud9$ echo "mongodb-org hold" | sudo dpkg --set-selections
dpkg: warning: package not in status nor available database at line 1: mongodb-org
dpkg: warning: found unknown packages; this might mean the available database
is outdated, and needs to be updated through a frontend method;
please see the FAQ <https://wiki.debian.org/Teams/Dpkg/FAQ>
debian#beaglebone:/var/lib/cloud9$ echo "mongodb-org-server hold" | sudo dpkg --set-selections
dpkg: warning: package not in status nor available database at line 1: mongodb-org-server
dpkg: warning: found unknown packages; this might mean the available database
is outdated, and needs to be updated through a frontend method;
please see the FAQ <https://wiki.debian.org/Teams/Dpkg/FAQ>
debian#beaglebone:/var/lib/cloud9$ echo "mongodb-org-shell hold" | sudo dpkg --set-selections
dpkg: warning: package not in status nor available database at line 1: mongodb-org-shell
dpkg: warning: found unknown packages; this might mean the available database
is outdated, and needs to be updated through a frontend method;
please see the FAQ <https://wiki.debian.org/Teams/Dpkg/FAQ>
debian#beaglebone:/var/lib/cloud9$ echo "mongodb-org-mongos hold" | sudo dpkg --set-selections
dpkg: warning: package not in status nor available database at line 1: mongodb-org-mongos
dpkg: warning: found unknown packages; this might mean the available database
is outdated, and needs to be updated through a frontend method;
please see the FAQ <https://wiki.debian.org/Teams/Dpkg/FAQ>
debian#beaglebone:/var/lib/cloud9$ echo "mongodb-org-tools hold" | sudo dpkg --set-selections
dpkg: warning: package not in status nor available database at line 1: mongodb-org-tools
dpkg: warning: found unknown packages; this might mean the available database
is outdated, and needs to be updated through a frontend method;
please see the FAQ <https://wiki.debian.org/Teams/Dpkg/FAQ>
but the problem is still the same.
How can I fix this issue please?
There is no ARMv7-HF package offered by that repository.
The easiest option is to go with the Debian package:
sudo apt install mongodb
This will yield version 3.2.11 as indicated here: https://packages.debian.org/stretch/mongodb
The more complicated option is to build it from source. This will potentially take a very long time if you do it directly on the BBB!
A rough guess at steps would be:
This pulls in build dependencies for the debian mongodb, which may be sufficient, but at least should provide a decent base:
sudo apt build-dep mongo
Download source code - as of the time of me writing this it would be:
wget https://fastdl.mongodb.org/src/mongodb-src-r3.6.5.tar.gz
Unpack: tar -xvzf mongodb-src-r3.6.5.tar.gz
Change directory into source: cd mongodb-src-r3.6.5
Build debian package from source: dpkg-buildpackage -b
Install build results: dpkg -i ../mongodb-org-bla-foo.deb
The build step might possibly fail for a variety of reasons, e.g. unresolved dependencies. Please make sure to download the latest version to avoid exposing yourself to security issues and stability problems, the above mentioned URL is just an example and only valid at the time of writing.

How can I solve the errors in apt update in raspberry pi?

Recently I edit my /etc/apt/sources.list and change jessie to stretch to get the new version of gcc-6. However I when I change stretch back to jessie, and run sudo apt-get update I got a lot of errors. How can I solve it.
pi#raspberrypi ~ $ sudo apt update
Hit:1 http://raspberrypi.collabora.com wheezy InRelease
Get:2 http://mirrordirector.raspbian.org/raspbian jessie InRelease [14.9 kB]
Err:1 http://raspberrypi.collabora.com wheezy InRelease
The following signatures were invalid: FF9FD9E73808E2376CB76F0AED4BF9140C50B1C5
Hit:4 http://archive.raspberrypi.org/debian jessie InRelease
Get:5 http://mirrordirector.raspbian.org/raspbian jessie/main armhf Packages [9534 kB]
Hit:3 https://packagecloud.io/Hypriot/Schatzkiste/raspbian jessie InRelease
Get:6 http://124.202.164.8/files/311600000A34E137/http.debian.net/debian jessie/main armhf Packages [169 kB]
Err:6 http://124.202.164.8/files/311600000A34E137/http.debian.net/debian jessie/main armhf Packages
Writing more data than expected (196868 > 169365)
Hashes of expected file:
- Filesize:169365 [weak]
- SHA256:779179f25b91efa4fdbf69aeb7c37d444e104e3b8d359daf27bc4db4d330003f
- SHA1:aa605ce914ddacfd4b8c71c72bab3a95b76c0ed5 [weak]
- MD5Sum:f0867f34045767904d0caa686f288615 [weak]
Release file created at: Fri, 14 Jul 2017 15:58:01 +0000
Get:7 http://archive.raspbian.org/raspbian jessie InRelease [14.9 kB]
Get:8 http://archive.raspbian.org/raspbian jessie/rpi Sources [1132 B]
Get:9 http://archive.raspbian.org/raspbian jessie/non-free Sources [113 kB]
Get:10 http://archive.raspbian.org/raspbian jessie/main Sources [7754 kB]
Ign:11 https://apt.dockerproject.org/repo raspbian-jessie InRelease
Get:12 http://mirrordirector.raspbian.org/raspbian jessie/contrib armhf Packages [43.3 kB]
Get:13 http://mirrordirector.raspbian.org/raspbian jessie/non-free armhf Packages [84.2 kB]
Get:14 http://mirrordirector.raspbian.org/raspbian jessie/rpi armhf Packages [1356 B]
Err:15 https://apt.dockerproject.org/repo raspbian-jessie Release
gnutls_handshake() failed: The TLS connection was non-properly terminated.
Get:16 http://archive.raspbian.org/raspbian jessie/contrib Sources [64.5 kB]
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://raspberrypi.collabora.com wheezy InRelease: The following signatures were invalid: FF9FD9E73808E2376CB76F0AED4BF9140C50B1C5
E: The repository 'https://apt.dockerproject.org/repo raspbian-jessie Release' does no longer 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.
My sources.list file
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
I had the same issue and below solution worked for me.
Create a file called badproxy with below lines:
Acquire::http::Pipeline-Depth 0;
Acquire::http::No-Cache true;
Acquire::BrokenProxy true;
then copy the file into the apt config folder:
cp ./badproxy /etc/apt/apt.conf.d/99fixbadproxy
I tried above suggestion from docker form
sudo apt remove gnupg
sudo apt install --reinstall gnupg2 (possibly not necessary, but doesn't hurt)
sudo apt install dirmngr
Then run
gpg --keyserver keys.gnupg.net --recv-key FF9FD9E73808E2376CB76F0AED4BF9140C50B1C5
gpg -a --export FF9FD9E73808E2376CB76F0AED4BF9140C50B1C5 | sudo apt-key add -

Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution) show error in ubuntu 16.04

I am used ubuntu 16.04 and try to install atom editor using following commands:-
sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update; sudo apt-get install atom
But can't istall show error :-
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 https://deb.nodesource.com/node_7.x xenial InRelease
Hit:3 http://dl.google.com/linux/chrome/deb stable Release
Hit:4 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Hit:6 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:7 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:8 http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu xenial InRelease
Hit:9 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:10 http://ppa.launchpad.net/webupd8team/atom/ubuntu xenial InRelease
Hit:11 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu xenial InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
atom : Depends: git
google-chrome-stable : Depends: libappindicator1 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Please tell us how to solov this problem?
Did you try to run the proposed solution ?
apt-get -f install
If this doesn't work, here is a list of other possible solutions to this issue.