代码: 全选
root@debian:/var/log# sudo apt-get -o Acquire::http::proxy="http://10.114.8.164:9999/" upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 33, in <module>
from ALChacks import *
File "/usr/share/apt-listchanges/ALChacks.py", line 32, in <module>
sys.stderr.write(_("Can't set locale; make sure $LC_* and $LANG are correct!\n"))
NameError: name '_' is not defined
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_CN:zh",
LC_ALL = (unset),
LANG = "c"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up gconf2 (2.28.1-6) ...
dpkg: error processing gconf2 (--configure):
subprocess installed post-installation script returned error exit status 127
configured to not write apport reports
dpkg: dependency problems prevent configuration of gdm3:
gdm3 depends on gconf2 (>= 2.28.1-2); however:
Package gconf2 is not configured yet.
dpkg: error processing gdm3 (--configure):
dependency problems - leaving unconfigured
configured to not write apport reports
Errors were encountered while processing:
gconf2
gdm3
E: Sub-process /usr/bin/dpkg returned an error code (1)
代码: 全选
root@debian:/var/log# sudo apt-get -o Acquire::http::proxy="http://10.114.8.164:9999/" install gconf2
Reading package lists... Done
Building dependency tree
Reading state information... Done
gconf2 is already the newest version.
gconf2 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 33, in <module>
from ALChacks import *
File "/usr/share/apt-listchanges/ALChacks.py", line 32, in <module>
sys.stderr.write(_("Can't set locale; make sure $LC_* and $LANG are correct!\n"))
NameError: name '_' is not defined
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_CN:zh",
LC_ALL = (unset),
LANG = "c"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up gconf2 (2.28.1-6) ...
dpkg: error processing gconf2 (--configure):
subprocess installed post-installation script returned error exit status 127
configured to not write apport reports
dpkg: dependency problems prevent configuration of gdm3:
gdm3 depends on gconf2 (>= 2.28.1-2); however:
Package gconf2 is not configured yet.
dpkg: error processing gdm3 (--configure):
dependency problems - leaving unconfigured
configured to not write apport reports
Errors were encountered while processing:
gconf2
gdm3
E: Sub-process /usr/bin/dpkg returned an error code (1)
autoremove 和 autoclean 都试过了,问题还是存在。
请问该如何解决呢?谢谢!