可以离线安装语言包吗?

可以离线安装语言包吗?

我有一台笔记本电脑,我想安装印尼语语言包。不幸的是,没有互联网连接。我可以离线安装语言包吗(假设我可以在另一台计算机上下载文件)?

日志:

Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/language-pack-gnome-id-base/language-pack-gnome-id-base_12.04+20120417_all.deb Could not resolve 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/language-pack-id-base/language-pack-id-base_12.04+20120417_all.deb Could not resolve 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/language-pack-id/language-pack-id_12.04+20120417_all.deb Could not resolve 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/language-pack-gnome-id/language-pack-gnome-id_12.04+20120417_all.deb Could not resolve 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/f/firefox/firefox-locale-id_11.0+build1-0ubuntu4_all.deb Could not resolve 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libr/libreoffice/libreoffice-l10n-id_3.5.2-2ubuntu1_all.deb Could not resolve 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/o/openoffice.org-hyphenation/openoffice.org-hyphenation_0.6_all.deb Could not resolve 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/poppler-data/poppler-data_0.4.5-2_all.deb Could not resolve 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/t/thunderbird/thunderbird-locale-id_11.0.1+build1-0ubuntu2_all.deb Could not resolve 'archive.ubuntu.com'

编辑:我尝试自己运行终端并使用gksudo file-roller提升的权限打开存档管理器,并手动提取包中的所有内容,但没有成功。

答案1

是的,你可以做到。打开你的终端并逐行粘贴这些行

mkdir lan
cd lan
wget http://shadow.ind.ntou.edu.tw/ubuntu//pool/main/l/language-pack-id-base/language-pack-id-base_12.04+20120417_all.deb
wget http://sg.archive.ubuntu.com/ubuntu/pool/main/l/language-pack-id/language-pack-id_12.04+20120417_all.deb
sudo dpkg -i *.deb

了解更多信息:http://packages.ubuntu.com/precise/translations/

答案2

下载 .deb 包并使用 进行安装sudo dpkg -i *.deb

下载方式:

wget http://archive.ubuntu.com/ubuntu/pool/main/l/language-pack-gnome-id-base/language-pack-gnome-id-base_12.04+20120417_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/l/language-pack-id-base/language-pack-id-base_12.04+20120417_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/l/language-pack-id/language-pack-id_12.04+20120417_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/l/language-pack-gnome-id/language-pack-gnome-id_12.04+20120417_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/f/firefox/firefox-locale-id_11.0+build1-0ubuntu4_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/libr/libreoffice/libreoffice-l10n-id_3.5.2-2ubuntu1_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openoffice.org-hyphenation/openoffice.org-hyphenation_0.6_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/p/poppler-data/poppler-data_0.4.5-2_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/t/thunderbird/thunderbird-locale-id_11.0.1+build1-0ubuntu2_all.deb

答案3

您可以下载这些软件包,然后手动dpkg安装它们。

如何下载软件包

运行命令

wget http://archive.ubuntu.com/ubuntu/pool/main/f/firefox/firefox-locale-id_11.0+build1-0ubuntu4_all.deb http://archive.ubuntu.com/ubuntu/pool/main/libr/libreoffice/libreoffice-l10n-id_3.5.2-2ubuntu1_all.deb http://archive.ubuntu.com/ubuntu/pool/main/l/language-pack-gnome-id-base/language-pack-gnome-id-base_12.04+20120417_all.deb http://archive.ubuntu.com/ubuntu/pool/main/l/language-pack-gnome-id/language-pack-gnome-id_12.04+20120417_all.deb http://archive.ubuntu.com/ubuntu/pool/main/l/language-pack-id-base/language-pack-id-base_12.04+20120417_all.deb http://archive.ubuntu.com/ubuntu/pool/main/l/language-pack-id/language-pack-id_12.04+20120417_all.deb http://archive.ubuntu.com/ubuntu/pool/main/o/openoffice.org-hyphenation/openoffice.org-hyphenation_0.6_all.deb http://archive.ubuntu.com/ubuntu/pool/main/p/poppler-data/poppler-data_0.4.5-2_all.deb http://archive.ubuntu.com/ubuntu/pool/main/t/thunderbird/thunderbird-locale-id_11.0.1+build1-0ubuntu2_all.deb

(这是一个很长的命令行;一旦运行它,它将下载您上面引用的所有包)。

如何安装软件包

运行命令

sudo dpkg -i *deb

(假设同一目录中不存在其他 .deb 文件)。

就是这样!

相关内容