Actions
Bug #56667
opencephadm install fails: apt:stderr E: Unable to locate package cephadm
% Done:
0%
Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
I am creating a new case as the original by another user was closed without resolution:
https://tracker.ceph.com/issues/46073
Reproduction of the issue is fairly strait forward.
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.
Actions