linux - 在 ubuntu 16.04 上安装 mongodb 时出错

标签 linux mongodb ubuntu ubuntu-16.04

我已经看过这些答案,所以请不要在解决方案中链接它们:

Installing MongoDB on Ubuntu 16.04 https://unix.stackexchange.com/questions/220467/mongodb-unmet-dependencies/220483 can't install mongodb on ubuntu 16.10 https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04

我已经为 ubuntu 16.04 添加了所需的存储库

当我运行 sudo apt-get install -y mongodb-org 时,它会抛出错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-headers-4.4.0-93-generic : Depends: linux-headers-4.4.0-93 but it is not going to be installed
mongodb-org : Depends: mongodb-org-shell but it is not going to be installed
               Depends: mongodb-org-server but it is not going to be installed
               Depends: mongodb-org-mongos but it is not going to be installed
               Depends: mongodb-org-tools but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

在运行 apt-get -f install 时,我收到以下错误:

Unpacking linux-headers-4.4.0-93 (4.4.0-93.116) ...
dpkg: error processing archive /var/cache/apt/archives/linux-headers-4.4.0-93_4.4.0-93.116_all.deb (--unpack):
unable to create '/usr/src/linux-headers-4.4.0-93/arch/xtensa/include/asm/pgtable.h.dpkg-new' (while processing './usr/src/linux-headers-4.4.0-93/arch/xtensa/include/asm/pgtable.h'): No space left on device
No apport report written because the error message indicates a disk full error
                                                                          dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-headers-4.4.0-93_4.4.0-93.116_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

当我再次尝试安装时,同样的事情仍在继续。

谁能解释一下这个错误是什么以及如何安装它?

更新:

运行 df -h 给出:

Filesystem      Size  Used Avail Use% Mounted on
udev            487M     0  487M   0% /dev
tmpfs           100M   12M   88M  12% /run
/dev/xvda1      7.8G  5.3G  2.1G  72% /
tmpfs           496M     0  496M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           496M     0  496M   0% /sys/fs/cgroup
tmpfs           100M     0  100M   0% /run/user/1000

运行 df -i 给出:

Filesystem     Inodes  IUsed  IFree IUse% Mounted on
udev           124466    360 124106    1% /dev
tmpfs          126788    480 126308    1% /run
/dev/xvda1     524288 520744   3544  100% /
tmpfs          126788      1 126787    1% /dev/shm
tmpfs          126788      6 126782    1% /run/lock
tmpfs          126788     16 126772    1% /sys/fs/cgroup
tmpfs          126794      4 126790    1% /run/user/1000

最佳答案

安装后工作 libcurl3

sudo apt install libcurl3

关于linux - 在 ubuntu 16.04 上安装 mongodb 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46404622/

相关文章:

c - 在 C 中以编程方式检测 Linux 中的桌面环境

c - 我如何知道我的 args[] 字符串是否为 char 类型?

mongodb - MongoDB官方GoLang驱动程序比较运算符

python - python 从 unicode 转换为 ascii

mongodb - mongodump 错误 "Failed: can' t 创建 session : could not connect to server:"

ubuntu - 适用于 AWS : Hammond's or Canonical's? 的 Ubuntu 镜像

Linux:运行命令时如何显示消息?

mysql - 能够通过 SSH 上的标准 TCP/IP 连接到 mysql 工作台,但无法通过标准 (TCP/IP) 连接

bash - TMUX 附加到具有 session 号的 session

node.js - AWS 上的 Ubuntu 服务器默认安全性