Documentation #46073
closedcephadm install fails: apt:stderr E: Unable to locate package cephadm
0%
Description
When following the installation guide on https://ceph.readthedocs.io/en/latest/cephadm/install/ I ran cephadm install, which resulted in an error:
INFO:cephadm:apt:stderr E: Unable to locate package cephadm
My setup:
debian 10 buster
ntp running
docker & lvm2 installed
Updated by Reinhard Eilmsteiner almost 4 years ago
Machine is amd64 in virtualbox on Windows
Updated by Reinhard Eilmsteiner almost 4 years ago
Reinhard Eilmsteiner wrote:
Machine is amd64 in virtualbox on Windows
Instruction is missing adding the apt-repository key!
Updated by Reinhard Eilmsteiner almost 4 years ago
This is a bug in the documentation only
Updated by Sebastian Wagner almost 3 years ago
- Project changed from Ceph to Orchestrator
- Subject changed from cephadm install fails to cephadm install fails: apt:stderr E: Unable to locate package cephadm
- Category deleted (
documentation)
Updated by Sebastian Wagner almost 3 years ago
- Tracker changed from Bug to Documentation
- Category set to cephadm
- Status changed from New to Need More Info
what needs to be changed here?
Updated by Sebastian Wagner over 2 years ago
- Status changed from Need More Info to Can't reproduce
Updated by Brian Woods over 1 year ago
This still appears to be an issue on Ubuntu 18.04.
Steps to re-produce on a clean install:
#Install Ubuntu 18.04. #Patch system. #Install docker and docker-compose sudo apt-get remove docker docker-engine docker.io containerd runc sudo apt-get update sudo apt-get install ca-certificates curl gnupg lsb-release sudo mkdir -p /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin sudo docker run hello-world curl --silent --remote-name --location https://github.com/ceph/ceph/raw/quincy/src/cephadm/cephadm chmod +x cephadm sudo ./cephadm add-repo --release quincy sudo apt update sudo ./cephadm install
The last command returns:
Installing packages ['cephadm']... Non-zero exit code 100 from apt-get install -y cephadm apt-get: stdout Reading package lists... apt-get: stdout Building dependency tree... apt-get: stdout Reading state information... apt-get: stderr E: Unable to locate package cephadm Traceback (most recent call last): File "./cephadm", line 9304, in <module> main() File "./cephadm", line 9292, in main r = ctx.func(ctx) File "./cephadm", line 7853, in command_install pkg.install(ctx.packages) File "./cephadm", line 7482, in install call_throws(self.ctx, ['apt-get', 'install', '-y'] + ls) File "./cephadm", line 1738, in call_throws raise RuntimeError(f'Failed command: {" ".join(command)}: {s}') RuntimeError: Failed command: apt-get install -y cephadm: E: Unable to locate package cephadm
I confirmed this on a physical box that is fairly old, then a new clean box, and then a VM. All three have the same issue.
Updated by Brian Woods over 1 year ago
Creating new case as this one was closed:
https://tracker.ceph.com/issues/56667