我正在尝试按照其提供的说明安装 MongoDB文档。
我遇到了此错误,无法解决此问题。如能提供任何帮助,我将不胜感激:
我正在运行的命令如下:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
对于 Ubuntu 18 LTS:
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
进而:
sudo apt-get update
进而:
sudo apt-get install -y mongodb-org
运行上述命令后我收到此错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libcurl4 mongodb-org-mongos mongodb-org-server mongodb-org-shell
mongodb-org-tools
The following NEW packages will be installed:
libcurl4 mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell
mongodb-org-tools
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/56.0 MB of archives.
After this operation, 241 MB of additional disk space will be used.
dpkg: unrecoverable fatal error, aborting:
unknown user 'mongodb' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)