locale-gen 和 locales 问题

locale-gen 和 locales 问题

我正在运行 Ubuntu 12.04。我尝试安装 vsftpd,但出现了一些错误。尝试使用 apt-get 安装其他软件包也会出现同样的错误。以下是详细信息:

sudo apt-get install vsftpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 language-pack-en-base : Depends: locales (>= 2.3.6)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我按照建议运行了 apt-get -f install,结果如下:

apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  locales
The following NEW packages will be installed:
  locales
0 upgraded, 1 newly installed, 0 to remove and 758 not upgraded.
2 not fully installed or removed.
Need to get 3957 kB of archives.
After this operation, 16.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  locales
Install these packages without verification [y/N]? y
Err http://ftp.us.debian.org/debian/ jessie/main locales all 2.19-11
  Could not resolve 'ftp.us.debian.org'
Failed to fetch http://ftp.us.debian.org/debian/pool/main/g/glibc/locales_2.19-11_all.deb  Could not resolve 'ftp.us.debian.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

然后我尝试使用--fix-missing 来运行它:

apt-get -f install --fix-missing
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  locales
The following NEW packages will be installed:
  locales
0 upgraded, 1 newly installed, 0 to remove and 758 not upgraded.
2 not fully installed or removed.
Need to get 3957 kB of archives.
After this operation, 16.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  locales
Install these packages without verification [y/N]? y
Err http://ftp.us.debian.org/debian/ jessie/main locales all 2.19-11
  Could not resolve 'ftp.us.debian.org'
Failed to fetch http://ftp.us.debian.org/debian/pool/main/g/glibc/locales_2.19-11_all.deb  Could     not resolve 'ftp.us.debian.org'
Unable to correct missing packages.
E: Aborting install.

我也无法安装语言环境甚至语言包。此外,运行 locale-gen 会返回以下内容:

locale-gen
The program 'locale-gen' is currently not installed.  You can install it by typing:
apt-get install locales

所以,我真的没有其他办法可以尝试。我无法使用 apt-get 安装任何软件包。所有错误都与此语言环境有关。

我现在有什么选择?

相关内容