我试图用Debian Wheezy在我的VDS上安装nodejs和npm软件包。 但是不是为了编译源码和懒惰,我在互联网上find了包含jessie源代码的安装指令。
安装没有完成,我甚至没有得到我的系统中的nodejs和npm。 但是现在我在我的区域设置中遇到了这个问题:
# locale 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 LANG=ru_RU.UTF-8 ....
我从作品名单中删除了jessie souce。 然后更新和升级系统。 当我尝试重新安装locales时,我得到这个错误,所以jessie的一些尾巴依然存在:
# apt-get install --reinstall locales Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: locales : Depends: glibc-2.13-1 Depends: debconf (>= 0.5) but it is not going to be installed or debconf-2.0 E: Unable to correct problems, you have held broken packages.
你可以帮帮我吗? 我能做什么? 现在这个错误经常出现,特别是在安装新软件包的时候。 我不知道它是否影响其他任务,但我还是没有感受到影响。
谢谢!
第一:
sudo apt-get purge locales
然后:
sudo aptitude install locales
和着名的:
sudo dpkg-reconfigure locales
这摆脱了语言环境的系统,然后重新安装语言环境并将libc6从2.19降级到2.13这是问题。 然后再configuration区域设置。
无论何时有人告诉你将不稳定或testing的源添加到稳定的系统中,你应该忽略它们并继续寻找另一个选项。 这是Debian系统最常见的破解方式。
要修复您的系统,请将所有源恢复到wheezy ,然后运行:
apt-get update apt-get dist-upgrade