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

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

[问题]不能执行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

#2

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

同样现象,帮顶
头像
purpleice
帖子: 182
注册时间: 2006-06-01 11:01

#3

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

sudo dpkg --configure -a
find,sed,awk
amoooo
帖子: 22
注册时间: 2007-11-12 17:42

#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

#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
回复