[问题]不能执行apt-get upgrade???

重复贴和参考价值不大的帖子,版主维护
回复
npgmis
帖子: 65
注册时间: 2007-08-28 16:42
送出感谢: 0
接收感谢: 0

[问题]不能执行apt-get upgrade???

#1

帖子 npgmis » 2007-11-21 10:42

执行apt-get 出现下面错误,试了下apt-get install samba也一样
在网上没找到答案,就来问了,新手!
root@ubuntu:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up tzdata (2007i-0ubuntu0.7.04) ...
Running 'tzconfig' to set this system's timezone.
/var/lib/dpkg/info/tzdata.postinst: line 27: /usr/sbin/tzconfig: No such file or directory
dpkg: error processing tzdata (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
tzdata
E: Sub-process /usr/bin/dpkg returned an error code (1)
amoooo
帖子: 22
注册时间: 2007-11-12 17:42
送出感谢: 0
接收感谢: 0

#2

帖子 amoooo » 2007-11-21 11:00

同样现象,帮顶
头像
purpleice
帖子: 182
注册时间: 2006-06-01 11:01
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 purpleice » 2007-11-21 11:02

sudo dpkg --configure -a
find,sed,awk
amoooo
帖子: 22
注册时间: 2007-11-12 17:42
送出感谢: 0
接收感谢: 0

#4

帖子 amoooo » 2007-11-21 11:10

amoo@amoo-laptop:~$ sudo dpkg --configure -a
正在设置 tzdata (2007i-0ubuntu0.7.04) ...
Running 'tzconfig' to set this system's timezone.
/var/lib/dpkg/info/tzdata.postinst: line 27: /usr/sbin/tzconfig: No such file or directory
dpkg:处理 tzdata (--configure)时出错:
子进程 post-installation script 返回了错误号 1
在处理时有错误发生:
tzdata
amoooo
帖子: 22
注册时间: 2007-11-12 17:42
送出感谢: 0
接收感谢: 0

#5

帖子 amoooo » 2007-11-21 11:57

已经解决,这样做

sudo mv /var/lib/dpkg/info/tzdata.postinst /var/lib/dpkg/info/tzdata.postinst.bak

然后 sudo apt-get update
回复

回到 “归档贴”