[Bug 1756495] Re: ceph package pre-removal script subprocess returmed error exit status 5

Joel Van Boxtel 1756495 at bugs.launchpad.net
Mon Mar 19 07:20:41 UTC 2018


i also added some false pre-removal script due to that they do not exist
on my system but that failed.

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceph in Ubuntu.
https://bugs.launchpad.net/bugs/1756495

Title:
  ceph  package pre-removal script subprocess returmed error exit status
  5

Status in ceph package in Ubuntu:
  New

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 at 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-agents' for glob 'ceph*'
  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-agents' is not installed, so not removed
  Package 'ceph-test' is not installed, so not removed
  The following packages were automatically installed and are no longer required:
    formencode-i18n libboost-program-options1.65.1
    libboost-python1.65.1 libboost-random1.65.1 libboost-regex1.65.1
    libcephfs2 libgoogle-perftools4 libibverbs1 libjs-sphinxdoc
    libjs-underscore libleveldb1v5 librados2 libradosstriper1 librbd1
    libtcmalloc-minimal4 libunwind8 python-cephfs python-certifi
    python-cherrypy3 python-dnspython python-formencode
    python-logutils python-mako python-markupsafe python-openid
    python-paste python-pastedeploy python-pastedeploy-tpl
    python-pastescript python-pecan python-prettytable
    python-pyinotify python-rados python-rbd python-repoze.lru
    python-requests python-routes python-scgi python-simplegeneric
    python-singledispatch python-tempita python-waitress python-webob
    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
                                                                dpkg: ceph-common: dependency problems, but removing anyway as you requested:
   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 at lgw01-amd64-002) (gcc version
  7.3.0 (Ubuntu 7.3.0-5ubuntu1)) #13-Ubuntu SMP Thu Mar 8 06:24:47 UTC
  2018

  
  Ceph info (all  packages incluing not installed packages)
  root at 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.2.2-0ubuntu2 500
          500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
          100 /var/lib/dpkg/status
  ceph-mds:
    Installed: (none)
    Candidate: 12.2.2-0ubuntu2
    Version table:
       12.2.2-0ubuntu2 500
          500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
  ceph-mgr:
    Installed: 12.2.2-0ubuntu2
    Candidate: 12.2.2-0ubuntu2
    Version table:
   *** 12.2.2-0ubuntu2 500
          500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
          100 /var/lib/dpkg/status
  ceph-mon:
    Installed: 12.2.2-0ubuntu2
    Candidate: 12.2.2-0ubuntu2
    Version table:
   *** 12.2.2-0ubuntu2 500
          500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
          100 /var/lib/dpkg/status
  ceph-osd:
    Installed: 12.2.2-0ubuntu2
    Candidate: 12.2.2-0ubuntu2
    Version table:
   *** 12.2.2-0ubuntu2 500
          500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
          100 /var/lib/dpkg/status
  ceph-test:
    Installed: (none)
    Candidate: 12.2.2-0ubuntu2
    Version table:
       12.2.2-0ubuntu2 500
          500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
  ceph-deploy:
    Installed: (none)
    Candidate: 1.5.38-0ubuntu1
    Version table:
       1.5.38-0ubuntu1 500
          500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
          500 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages
  ceph-base:
    Installed: 12.2.2-0ubuntu2
    Candidate: 12.2.2-0ubuntu2
    Version table:
   *** 12.2.2-0ubuntu2 500
          500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
          100 /var/lib/dpkg/status
  ceph-resource-agents:
    Installed: (none)
    Candidate: 12.2.2-0ubuntu2
    Version table:
       12.2.2-0ubuntu2 500
          500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
          500 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages
  ceph:
    Installed: (none)
    Candidate: 12.2.2-0ubuntu2
    Version table:
       12.2.2-0ubuntu2 500
          500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
          100 /var/lib/dpkg/status
  ceph-fuse:
    Installed: (none)
    Candidate: 12.2.2-0ubuntu2
    Version table:
       12.2.2-0ubuntu2 500
          500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
  ceph-client-tools:
    Installed: (none)
    Candidate: (none)
    Version table:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1756495/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list