从 12.04 升级到 14.04 时出现问题

从 12.04 升级到 14.04 时出现问题

我是一个 Linux 新手,在笔记本电脑上使用 Ubuntu 12.04,现在想升级到 14.04。我遇到了一些问题,并尝试通过谷歌搜索解决问题。我非常希望得到一些建议,但请把我当成白痴,因为我对 Linux 几乎没有经验 :-( 很抱歉在我的第一篇帖子中就写“tl;dr”,但我不知道哪些内容相关,哪些内容不相关。

我尝试从更新管理器进行升级,但收到此消息:

Third party sources disabled
Some third party entries in your sources.list were disabled. You can re-enable them after the upgrade with the 'software-properties' tool or your package manager.

接下来是以下消息:

The upgrade has aborted. The upgrade needs a total of 2,195 M free space on disk '/'. Please free at least an additional 891 M of disk space on '/'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'.

上述情况发生的时间点是在“设置新的软件频道”

我清空了垃圾桶,然后

sudo apt-get clean 

按照指示操​​作;但此后终端中什么也没有发生。我不确定“/”在哪里,以及我应该删除什么?尽管如此,我还是尝试再次使用更新管理器重新安装,但结果还是一样。

然后我谷歌了一下并在终端中执行了此操作:

sudo update-manager -d

并得到这个:

WARNING:root:nothing unsupported running 0 (0)

无论如何,它随后再次调出了更新管理器,因此我按照第一步再次单击了升级,但结果是一样的。

谢谢。输出

DF-H

是:

Filesystem Size Used Avail Use% Mounted on /dev/sda1 7.4G 5.8G 1.3G 83% / udev 932M 4.0K 932M 1% /dev tmpfs 188M 920K 187M 1% /run none 5.0M 0 5.0M 0% /run/lock none 939M 19M 921M 2% /run/shm /dev/sda6 220G 31G 178G 15% /home

这里确实很基本,但是我如何从 / 中删除东西?

我也按照以下操作,并再次尝试升级,但结果相同

sudo apt-get autoremove && sudo apt-get autoclean [sudo] password for fibie: Reading package lists... Done Building dependency tree
Reading state information... Done The following packages will be REMOVED gettext libtommath0 ttf-droid ttf-umefont ttf-unfonts-core wine-gecko1.8 wine-gecko1.9 0 to upgrade, 0 to newly install, 7 to remove and 0 not to upgrade. After this operation, 41.1 MB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 278209 files and directories currently installed.) Removing gettext ... Removing libtommath0 ... Removing ttf-droid ... Removing ttf-umefont ... Removing ttf-unfonts-core ... Removing wine-gecko1.8 ... Removing wine-gecko1.9 ... Processing triggers for install-info ... Processing triggers for man-db ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place Reading package lists... Done Building dependency tree
Reading state information... Done

谢谢

这原本是一台 Windows PC,但我以为我卸载了 Windows。我没有在启动时选择启动 Windows。我不需要 Windows。

谢谢 :-) 我如何调整 / 分区的大小?

我刚试过

sudo do-release-升级

输出是巨大的,但最终结果是一样的,升级中止。

答案1

您有点为难:您的根分区只有 ~8GB,因此很难腾出空间。我建议您从主目录中的文件夹设置临时挂载到/var/cache/apt/archives/,以便主目录分区中的空间可供 apt 使用:

mkdir ~/tmp
sudo mount -o bind ~/tmp /var/cache/apt/archives/

这应该会给出apt足够的空间。

答案2

/ 是您的根分区。您的整个 Ubuntu 安装都在 / 中。这包括您的所有应用程序、音乐、图片、视频等。(您的个人文件通常存储在 /home/(username)/ 中)。如果您可以清除/复制其中一些文件到另一个位置,您将释放 / 中的空间。

你也可以跑步sudo apt-get autoremove && sudo apt-get autoclean来释放更多空间

您的主目录安装在 220G 分区上,根目录 (/) 安装在 7.4G 分区上。我建议将 / 分区 (/dev/sda1) 的大小调整为 15G 左右。您可以使用类似gparted调整分区大小的工具。

如果您不想调整分区大小sudo do-release-upgrade,*可能*可行。

你能将你的回复以评论的形式发布到这篇文章中吗?否则原始帖子会变得混乱。

在这种情况下,您应该通过运行来安装 gparted sudo apt-get install gparted。然后gparted &运行它。

相关内容