ceph package pre-removal script subprocess returmed error exit status 5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ceph (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
did a bug report due to that it still not fixed in Ubuntu 18.04, this is a duplicate of #1546112 however in a different version as Ubuntu.
root@lynk:/# sudo apt purge ceph*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'ceph-fs-common' for glob 'ceph*'
Note, selecting 'ceph-common' for glob 'ceph*'
Note, selecting 'ceph-mds' for glob 'ceph*'
Note, selecting 'ceph-mgr' for glob 'ceph*'
Note, selecting 'ceph-mon' for glob 'ceph*'
Note, selecting 'ceph-osd' for glob 'ceph*'
Note, selecting 'ceph-test' for glob 'ceph*'
Note, selecting 'ceph-deploy' for glob 'ceph*'
Note, selecting 'ceph-base' for glob 'ceph*'
Note, selecting 'ceph-resource-
Note, selecting 'ceph' for glob 'ceph*'
Note, selecting 'ceph-fuse' for glob 'ceph*'
Note, selecting 'ceph-client-tools' for glob 'ceph*'
Package 'ceph-client-tools' is not installed, so not removed
Package 'ceph-fs-common' is not installed, so not removed
Package 'ceph-deploy' is not installed, so not removed
Package 'ceph-fuse' is not installed, so not removed
Package 'ceph-mds' is not installed, so not removed
Package 'ceph-resource-
Package 'ceph-test' is not installed, so not removed
The following packages were automatically installed and are no longer required:
formencode-i18n libboost-
libboost-
libcephfs2 libgoogle-
libjs-underscore libleveldb1v5 librados2 libradosstriper1 librbd1
libtcmalloc-
python-cherrypy3 python-dnspython python-formencode
python-logutils python-mako python-markupsafe python-openid
python-paste python-pastedeploy python-
python-
python-pyinotify python-rados python-rbd python-repoze.lru
python-requests python-routes python-scgi python-
python-
python-webtest python-werkzeug
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
ceph* ceph-base* ceph-common* ceph-mgr* ceph-mon* ceph-osd*
0 to upgrade, 0 to newly install, 6 to remove and 0 not to upgrade.
After this operation, 134 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 205987 files and directories currently installed.)
Removing ceph-mgr (12.2.2-0ubuntu2) ...
Failed to stop ceph.service: Unit ceph.service not loaded.
invoke-rc.d: initscript ceph, action "stop" failed.
dpkg: error processing package ceph-mgr (--remove):
installed ceph-mgr package pre-removal script subprocess returned error exit status 5
Removing ceph-osd (12.2.2-0ubuntu2) ...
Failed to stop ceph.service: Unit ceph.service not loaded.
invoke-rc.d: initscript ceph, action "stop" failed.
dpkg: error processing package ceph-osd (--remove):
installed ceph-osd package pre-removal script subprocess returned error exit status 5
Removing ceph-mon (12.2.2-0ubuntu2) ...
Failed to stop ceph.service: Unit ceph.service not loaded.
invoke-rc.d: initscript ceph, action "stop" failed.
dpkg: error processing package ceph-mon (--remove):
installed ceph-mon package pre-removal script subprocess returned error exit status 5
dpkg: ceph-base: dependency problems, but removing anyway as you requested:
ceph-mgr depends on ceph-base (= 12.2.2-0ubuntu2).
ceph-mon depends on ceph-base (= 12.2.2-0ubuntu2).
ceph-osd depends on ceph-base (= 12.2.2-0ubuntu2).
Removing ceph-base (12.2.2-0ubuntu2) ...
Failed to stop ceph.service: Unit ceph.service not loaded.
invoke-rc.d: initscript ceph, action "stop" failed.
dpkg: error processing package ceph-base (--remove):
installed ceph-base package pre-removal script subprocess returned error exit status 5
No apport report written because MaxReports is reached already
ceph-base depends on ceph-common (= 12.2.2-0ubuntu2).
ceph-osd depends on ceph-common (= 12.2.2-0ubuntu2).
Removing ceph-common (12.2.2-0ubuntu2) ...
Errors were encountered while processing:
ceph-mgr
ceph-osd
ceph-mon
ceph-base
E: Sub-process /usr/bin/dpkg returned an error code (1)
did a bug report due to that it still not fixed in ubuntu 18.04
system info
Distributor ID: Ubuntu
Description: Ubuntu Bionic Beaver (development branch)
Release: 18.04
Codename: bionic
Linux version 4.15.0-12-generic (buildd@
Ceph info (all packages incluing not installed packages)
root@lynk:/# apt-cache policy ceph*
ceph-fs-common:
Installed: (none)
Candidate: (none)
Version table:
ceph-common:
Installed: (none)
Candidate: 12.2.2-0ubuntu2
Version table:
12.
500 http://
100 /var/lib/
ceph-mds:
Installed: (none)
Candidate: 12.2.2-0ubuntu2
Version table:
12.
500 http://
ceph-mgr:
Installed: 12.2.2-0ubuntu2
Candidate: 12.2.2-0ubuntu2
Version table:
*** 12.2.2-0ubuntu2 500
500 http://
100 /var/lib/
ceph-mon:
Installed: 12.2.2-0ubuntu2
Candidate: 12.2.2-0ubuntu2
Version table:
*** 12.2.2-0ubuntu2 500
500 http://
100 /var/lib/
ceph-osd:
Installed: 12.2.2-0ubuntu2
Candidate: 12.2.2-0ubuntu2
Version table:
*** 12.2.2-0ubuntu2 500
500 http://
100 /var/lib/
ceph-test:
Installed: (none)
Candidate: 12.2.2-0ubuntu2
Version table:
12.
500 http://
ceph-deploy:
Installed: (none)
Candidate: 1.5.38-0ubuntu1
Version table:
1.
500 http://
500 http://
ceph-base:
Installed: 12.2.2-0ubuntu2
Candidate: 12.2.2-0ubuntu2
Version table:
*** 12.2.2-0ubuntu2 500
500 http://
100 /var/lib/
ceph-resource-
Installed: (none)
Candidate: 12.2.2-0ubuntu2
Version table:
12.
500 http://
500 http://
ceph:
Installed: (none)
Candidate: 12.2.2-0ubuntu2
Version table:
12.
500 http://
100 /var/lib/
ceph-fuse:
Installed: (none)
Candidate: 12.2.2-0ubuntu2
Version table:
12.
500 http://
ceph-client-tools:
Installed: (none)
Candidate: (none)
Version table:
i also added some false pre-removal script due to that they do not exist on my system but that failed.