Score:2

dpkg error when trying to install ceph-deploy

cn flag

I can't install ceph-deploy on Ubuntu 20.04.2 LTS. When I try:

apt install ceph-deploy

I get this:

dpkg: error processing archive /var/cache/apt/archives/ceph-deploy_2.0.1-0ubuntu1_all.deb (--unpack):
 trying to overwrite '/usr/share/man/man8/ceph-deploy.8.gz', which is also in package ceph-base 15.2.11-0ubuntu0.20.04.2
Errors were encountered while processing: 
 /var/cache/apt/archives/ceph-deploy_2.0.1-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

It seems to be this bug listed here: https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1892448

Could this package solve the problem?

Do I need to install that package? If yes, how do I do that and what else do I need to do?

Score:1
zw flag

You can override package installation using low-level command below

sudo dpkg -i --force-all /var/cache/apt/archives/ceph-deploy_2.0.1-0ubuntu1_all.deb

and then run

sudo apt-get install -f
sudo dpkg --configure -a

to resume package installation.

silbro avatar
cn flag
thank you! This helped :)
Score:0
pl flag

As far as I remember ceph-deploy is no longer maintained. You can use Cephadm or much more reliable, install ceph cluster the old-school way - command line by command line. This way you do not depend on some wrapper and most important , you start to undestand what you do...

Everting you need to know is here: https://docs.ceph.com/en/latest/install/index_manual/#get-software

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.