无法用aptitude在Ubuntu 9.10上安装任何东西

以前我可以使用'sudo aptitude install'命令来安装软件。 今天当我试图安装rkhunter我得到错误。 这不仅仅是呃,我不能安装任何东西。

这是文本输出:

user@server:~$ sudo aptitude install rkhunter ................ ................ 20% [3 rkhunter 947/271kB 0%] Get:4 http://archive.ubuntu.com karmic/universe unhide 20080519-4 [832kB] 40% [4 unhide 2955/832kB 0%] 100% [Working] Fetched 1394kB in 1s (825kB/s) Preconfiguring packages ... Selecting previously deselected package lsof. (Reading database ... ................ (Reading database ... 95% (Reading database ... 100% (Reading database ... 20076 files and directories currently installed.) Unpacking lsof (from .../lsof_4.81.dfsg.1-1_amd64.deb) ... dpkg: error processing /var/cache/apt/archives/lsof_4.81.dfsg.1-1_amd64.deb (--unpack): unable to create `/usr/bin/lsof.dpkg-new' (while processing `./usr/bin/lsof'): Permission denied dpkg-deb: subprocess paste killed by signal (Broken pipe) Selecting previously deselected package libmd5-perl. Unpacking libmd5-perl (from .../libmd5-perl_2.03-1_all.deb) ... Selecting previously deselected package rkhunter. Unpacking rkhunter (from .../rkhunter_1.3.4-5_all.deb) ... dpkg: error processing /var/cache/apt/archives/rkhunter_1.3.4-5_all.deb (--unpack): unable to create `/usr/bin/rkhunter.dpkg-new' (while processing `./usr/bin/rkhunter'): Permission denied dpkg-deb: subprocess paste killed by signal (Broken pipe) Selecting previously deselected package unhide. Unpacking unhide (from .../unhide_20080519-4_amd64.deb) ... dpkg: error processing /var/cache/apt/archives/unhide_20080519-4_amd64.deb (--unpack): unable to create `/usr/sbin/unhide-posix.dpkg-new' (while processing `./usr/sbin/unhide-posix'): Permission denied dpkg-deb: subprocess paste killed by signal (Broken pipe) Processing triggers for man-db ... Errors were encountered while processing: /var/cache/apt/archives/lsof_4.81.dfsg.1-1_amd64.deb /var/cache/apt/archives/rkhunter_1.3.4-5_all.deb /var/cache/apt/archives/unhide_20080519-4_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up libmd5-perl (2.03-1) ... Building dependency tree... 0% Building dependency tree... 50% Building dependency tree... 50% Building dependency tree Reading state information... 0% ........... .................... 

我已经删除了一些行来减less文本。 所有的错误信息都在这里。 我的Linux经验是有限的,我不知道是什么问题或如何解决。

谢谢。


dmesg |的响应 尾巴由@Danny Staple提问

 [15124905.180010] TCP: Peer 86.137.106.203:53633/80 unexpectedly shrunk window 4186622621:4186623965 (repaired) [15124906.180012] TCP: Peer 86.137.106.203:53633/80 unexpectedly shrunk window 4186622621:4186623965 (repaired) [15515559.123663] iftop uses obsolete (PF_INET,SOCK_PACKET) [16976290.290013] eth0: no IPv6 routers present [16976291.180014] eth1: no IPv6 routers present [16984092.913895] EXT3-fs: Unrecognized mount option "-" or missing value [16984099.795068] EXT3-fs: Unrecognized mount option "-errors=remount-ro" or missing value [16984368.841407] EXT3-fs: Unrecognized mount option "w" or missing value [16984422.110130] EXT3-fs: Unrecognized mount option "noerrors" or missing value [17249700.060009] TCP: Peer 81.159.138.220:63867/80 unexpectedly shrunk window 2200198177:2200201097 (repaired) 

问题发生在dpkg想要解压*.deb文件,可能是一个文件系统挂载选项的问题:

这是错误:

 unable to create `/usr/bin/lsof.dpkg-new' (while processing `./usr/bin/lsof'): Permission denied 

你可以在没有ro选项的情况下挂载文件系统吗?

提示

 mount / -o remount,rw 

如果/是你的挂载点(可能是/usr/bin所属的任何地方),可能是/usr/

/ dev / sda1 on / type ext3(rw,noatime,errors = remount-ro)
proc on / proc type proc(rw)
none / systypessysfs(rw,noexec,nosuid,nodev)
熔断器/ sys / fs / fuse /连接器typesfusectl(rw)
无/ sys / kernel / debugtypesdebugfs(rw)
none / sys / kernel /安全typessecurityfs(rw)
udev on / dev type tmpfs(rw,mode = 0755)
none / dev / pts type devpts(rw,noexec,nosuid,gid = 5,mode = 0620)
none / dev / shmtypestmpfs(rw,nosuid,nodev)
无/ var / runtypestmpfs(rw,nosuid,mode = 0755)
无/ var / locktypestmpfs(rw,noexec,nosuid,nodev)
无/ lib / init / rwtypestmpfs(rw,nosuid,mode = 0755)
/ dev / sda1 on /dev/.static/devtypesext3(rw)

有问题的软件包位于软件包caching中。 尝试这样做:

sudo apt-get clean

另一个潜在的问题是安装点可能已满。 你尝试过做一个df