Project

General

Profile

Documentation #46073

cephadm install fails: apt:stderr E: Unable to locate package cephadm

Added by Reinhard Eilmsteiner over 2 years ago. Updated 6 months ago.

Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Category:
cephadm
Target version:
-
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

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

History

#1 Updated by Reinhard Eilmsteiner over 2 years ago

Machine is amd64 in virtualbox on Windows

#2 Updated by Reinhard Eilmsteiner over 2 years ago

Reinhard Eilmsteiner wrote:

Machine is amd64 in virtualbox on Windows

Instruction is missing adding the apt-repository key!

#3 Updated by Reinhard Eilmsteiner over 2 years ago

This is a bug in the documentation only

#4 Updated by Greg Farnum over 1 year ago

  • Category set to documentation

#5 Updated by Sebastian Wagner over 1 year 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)

#6 Updated by Sebastian Wagner over 1 year 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?

#7 Updated by Sebastian Wagner about 1 year ago

  • Status changed from Need More Info to Can't reproduce

#8 Updated by Brian Woods 6 months 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.

#9 Updated by Brian Woods 6 months ago

Creating new case as this one was closed:
https://tracker.ceph.com/issues/56667

Also available in: Atom PDF