我通过 CD 安装了 Ubuntu 14.04,当时我没有互联网连接,因此无法获取所有内置软件包。出现了一些问题,例如,播放 mp3、mp4 格式等所需的插件,如何获取所有这些软件包。帮帮我吧。
答案1
您也可以从其他人的计算机下载并执行此操作,但答案仍然是:
安装 Ubuntu 时,它使用 DVD 加载 Ubuntu,软件包也是如此。安装时,您可以选择从互联网更新,请不要选择该选项。记住您的密码
像往常一样安装,安装后重新启动,但是无需取出 DVD
现在进入你的终端并输入
sudo nano /etc/apt/sources.list
它会要求你输入密码
它是列出安装源的文件,它看起来像
# deb cdrom:[Ubuntu 15.04 _Vivid Vervet_ - Alpha amd64 (20150228)]/ vivid main $
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://in.archive.ubuntu.com/ubuntu/ vivid main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ vivid main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ vivid universe
deb-src http://in.archive.ubuntu.com/ubuntu/ vivid universe
deb http://in.archive.ubuntu.com/ubuntu/ vivid-updates universe
deb-src http://in.archive.ubuntu.com/ubuntu/ vivid-updates universe
你的将会有所不同
现在第一行将允许系统使用你的 CD 作为软件存储库,因此现在取消注释它,它现在应该看起来像
deb cdrom:[Ubuntu 15.04 _Vivid Vervet_ - Alpha amd64 (20150228)]/ vivid main $
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://in.archive.ubuntu.com/ubuntu/ vivid main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ vivid main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ vivid universe
deb-src http://in.archive.ubuntu.com/ubuntu/ vivid universe
deb http://in.archive.ubuntu.com/ubuntu/ vivid-updates universe
deb-src http://in.archive.ubuntu.com/ubuntu/ vivid-updates universe
这是最重要的一行(仅...)
deb cdrom:[Ubuntu 15.04 _Vivid Vervet_ - Alpha amd64 (20150228)]/ vivid main $
然后按 Ctrl + X,然后按 Shift + Y,再按 Enter
已完成,现在在您的普通终端类型中
sudo apt-get update
这将更新存储库,现在您需要输入您的密码作为身份验证,您将看到一个长列表。
那么您可能只安装一些软件包而不是全部。