apt-get 好像进入死循环,怎么也删不掉libsvga1

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
snleo
帖子: 50
注册时间: 2008-05-29 6:49
联系:

apt-get 好像进入死循环,怎么也删不掉libsvga1

#1

帖子 snleo » 2008-08-15 7:29

apt-get 好像进入死循环,怎么也删不掉libsvga1

sudo apt-get --reinstall install libsvga1
[sudo] password for snleo:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libsvga1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B/324kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 132647 files and directories currently installed.)
Preparing to replace libsvga1 1:1.4.3-24 (using .../libsvga1_1%3a1.4.3-24_amd64.deb) ...
Unpacking replacement libsvga1 ...
dpkg: error processing /var/cache/apt/archives/libsvga1_1%3a1.4.3-24_amd64.deb (--unpack):
unable to install (supposed) new info file `/var/lib/dpkg/tmp.ci/conffiles': Permission denied
Errors were encountered while processing:
/var/cache/apt/archives/libsvga1_1%3a1.4.3-24_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


sudo apt-get remove libsvga1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
libsvga1
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 705kB disk space will be freed.
Do you want to continue [Y/n]?
dpkg: error processing libsvga1 (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
libsvga1
E: Sub-process /usr/bin/dpkg returned an error code (1)
头像
yiding_he
帖子: 2677
注册时间: 2006-10-25 18:10
来自: 长沙
联系:

#2

帖子 yiding_he » 2008-08-15 8:55

系统提示 /var/lib/dpkg/tmp.ci/ 这个目录有问题。楼主先把它清空一下看看。
你是自由的。别人也是。
头像
snleo
帖子: 50
注册时间: 2008-05-29 6:49
联系:

#3

帖子 snleo » 2008-08-16 1:05

yiding_he 写了:系统提示 /var/lib/dpkg/tmp.ci/ 这个目录有问题。楼主先把它清空一下看看。
tmp.ci目录在运行apt-get的时候自动生成,而且在apt-get的时候是sudo成root的。其他package安装也会自动产生这个目录为何就没有问题。

我想彻底清除掉这个package,然后再装上。问题是用apt-get的清除命令不起作用。
头像
zhexuezhuzi
帖子: 884
注册时间: 2008-01-23 14:02
来自: 吉林大学
联系:

#4

帖子 zhexuezhuzi » 2008-08-16 9:44

你换成官方源重新安装一下试试
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#5

帖子 BigSnake.NET » 2008-08-16 13:10

怎么是permission denied呢? 你的 /var 是 ro 挂载?
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
回复