我刚买了一台戴尔 inspirion 笔记本电脑,酷睿 i3,4GB RAM,Nvidia 显卡(2GB VRAM),它附带 Ubuntu 12.0.4 LTS,这很好,因为我需要它来进行编程。但是当我从更新管理器运行分发更新时,它总是在大约一半之后卡住,几乎从来不在同一个地方(我不得不几次将其恢复到出厂状态)。我尝试了 sudo apt-get -f install,尝试了 sudo fuser /var/etc... 然后 sudo apt-get -f install,它运行了更新,但在安装内核时出现了一些错误,根本无法加载。请帮忙
PS:我是 Ubuntu 和 Linux 的新手,我掌握了基础知识,但仍然不明白这里的一些东西。
答案1
测试一下:
打开你的电脑。
按住 Shift 键,将调出 Grub 菜单。
选择以 ---- 开头的行Advanced options
。
选择以 ---- 结尾的行(recovery mode)
。
您的电脑应该会显示一个带有多个选项的菜单。
选择直线 ---- Drop to root shell prompt
。
在终端中运行:
mount -o remount,rw /
mount --all
nano /etc/apt/sources.list
在打开的文件中。
删除内容。
粘贴以下内容:
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ precise universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu precise-security main restricted
# deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
# deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
# deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner
deb http://extras.ubuntu.com/ubuntu precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main
deb http://us.archive.ubuntu.com/ubuntu/ precise-proposed universe multiverse restricted main
Ctrl+ U,粘贴文本。Ctrl+ O,保存文件。Ctrl+ X,关闭 nano。
继续运行:
apt-get update
apt-get dist-upgrade
apt-get -f install
dpkg --configure -a
apt-get install --reinstall ubuntu-desktop
apt-get autoremove
apt-get clean
reboot