adduser: The user `bitcoin' already exists. Exiting. #13901

issue SearchAndDestroy opened this issue on August 7, 2018
  1. SearchAndDestroy commented at 12:25 PM on August 7, 2018: none

    I am trying to update my bitcoin core version to 0.16.2 via the Ubuntu ppa but I am getting adduser: The user `bitcoin' already exists. Exiting.. My system is Bitseed3 running Ubuntu 16.0.5 LTS (Xenial) and a user bitcoin is already existing and is used as the normal login user. Any idea how to correct this error? I am getting it every time I use apt-get install:

    $ uname -a
    Linux bitseed3 4.4.0-62-generic [#83](/bitcoin-bitcoin/83/)-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
    $ sudo apt-get install bitcoind
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
      bitcoind
    0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
    Need to get 0 B/1,811 kB of archives.
    After this operation, 6,613 kB of additional disk space will be used.
    Selecting previously unselected package bitcoind.
    (Reading database ... 88747 files and directories currently installed.)
    Preparing to unpack .../bitcoind_0.16.2-xenial1_amd64.deb ...
    Unpacking bitcoind (0.16.2-xenial1) ...
    Processing triggers for man-db (2.7.5-1) ...
    Setting up bitcoind (0.16.2-xenial1) ...
    adduser: The user `bitcoin' already exists. Exiting.
    dpkg: error processing package bitcoind (--configure):
     subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
     bitcoind
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    
  2. MarcoFalke added the label Build system on Aug 7, 2018
  3. Derek701 commented at 6:51 AM on August 8, 2018: contributor

    As a workaround, you can try commenting out the line

    adduser --system --home "${BCHOME}" --no-create-home --group "${BCUSER}"

    near the top of the file /var/lib/dpkg/info/bitcoind.postinst and running the install command again.

  4. SearchAndDestroy commented at 5:10 PM on August 8, 2018: none

    @Derek701 thanks, it worked but I would like to avoid editing every time a new version is released :)

  5. MarcoFalke assigned TheBlueMatt on Aug 8, 2018
  6. TheBlueMatt commented at 1:09 PM on August 14, 2018: member

    These issues should be filed against the packaging repo, see https://github.com/bitcoin-core/packaging/issues/5

  7. laanwj commented at 1:13 PM on August 14, 2018: member

    Closing as duplicate

  8. laanwj closed this on Aug 14, 2018

  9. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-15 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me