自足常乐

debian9安装mongod碰到的软件包依赖问题

本文已经超过52个月没有更新,部分内容可能失效。

环境debian9,安装mongod,碰到软件包依赖问题,跳不过去

26 wget https://repo.percona.com/apt/percona-release_0.1-4.$(lsb_release -sc)_all.deb
27 dpkg -i percona-release_0.1-4.$(lsb_release -sc)_all.deb
28 apt-get update
29 apt-get install percona-server-mongodb-34

常规操作,按照上面执行后,提示下面信息:

root@sd-113255:~# apt-get install percona-server-mongodb-34
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
percona-server-mongodb-34 : Depends: percona-server-mongodb-34-mongos (= 3.4.22-2.20.stretch) but 3.4.21-2.19.stretch is to be installed
Depends: percona-server-mongodb-34-shell (= 3.4.22-2.20.stretch) but 3.4.21-2.19.stretch is to be installed
Depends: percona-server-mongodb-34-server (= 3.4.22-2.20.stretch) but 3.4.21-2.19.stretch is to be installed
Depends: percona-server-mongodb-34-tools (= 3.4.22-2.20.stretch) but it is not going to be installed
percona-server-mongodb-34-dbg : Depends: percona-server-mongodb-34 (= 3.4.21-2.19.stretch) but 3.4.22-2.20.stretch is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@sd-113255:~# service mongodb status
Unit mongodb.service could not be found.
root@sd-113255:~# service mongo status
Unit mongo.service could not be found.
root@sd-113255:~# service mongod status
● mongod.service - High-performance, schema-free document-oriented database
Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2019-08-09 10:24:12 CEST; 23h ago
Process: 4685 ExecStart=/usr/bin/env bash -c ${NUMACTL} /usr/bin/mongod ${OPTIONS} > ${STDOUT} 2> ${STDERR} (code=exited, status=1/FAILURE)
Process: 4667 ExecStartPre=/usr/bin/percona-server-mongodb-helper.sh (code=exited, status=0/SUCCESS)

debian环境方便的是命令行在线更新,按照提示执行“apt –fix-broken install”,解决问题。

转载请标明出处:自足常乐

本文地址:https://www.xawnu.com/168.html

扫一扫分享给好友
扫一扫分享给好友
相关文章
0 评论
留言