我尝试使用以下方法在服务器机器(Ubuntu 服务器)上安装 mongodb安装 mongodb。
当我使用时sudo apt-get update
,我发现404 Not Found
许多网址出现以下错误:
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/main/source/Sources 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/restricted/source/Sources 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/universe/source/Sources 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/multiverse/source/Sources 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/main/binary-i386/Packages 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal/main/source/Sources 404 Not Found [IP: 91.189.91.14 80]
我跳过了这个问题,运行了下一个命令sudo apt-get install -y mongodb-org
,但出现了以下错误:
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.5.0-45-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.5.0-45-generic.postinst line 1010.
dpkg: error processing linux-image-3.5.0-45-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-extra-3.5.0-39-generic (3.5.0-39.60) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.5.0-45-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.5.0-39-generic /boot/vmlinuz-3.5.0-39-generic
update-initramfs: Generating /boot/initrd.img-3.5.0-39-generic
和
No apport report written because MaxReports is reached already
Errors were encountered
while processing:
linux-image-3.5.0-45-generic
linux-image-extra-3.5.0-39-generic
linux-image-extra-3.5.0-40-generic
linux-image-extra-3.5.0-41-generic
linux-image-extra-3.5.0-44-generic
linux-image-extra-3.5.0-45-generic
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
我发现 mongodb 和它的包已经安装,但我想知道为什么会出现这些错误?
答案1
404 错误很容易处理:
对 Ubuntu 12.10 Quantal Quetzal 的支持于 2014 年 5 月 16 日正式结束。
如果您仍在使用 12.10,我们无法帮助您。您应该考虑升级: 升级说明