安装 Xfce GUI 时出错

安装 Xfce GUI 时出错

尝试安装 Xfce 时,我遇到错误,因为在服务器上找不到提取的安装文件中的软件包,如下所示:

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9/cpp-9_9.3.0-17ubuntu1~20.04_amd64.deb Connection failed 
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/f/fonts-urw-base35/fonts-urw-base35_20170801.1-3_all.deb Connection failed 
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/w/webkit2gtk/libwebkit2gtk-4.0-37_2.28.4-0ubuntu0.20.04.1_amd64.deb Connection failed 
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/u/ubuntu-touch-sounds/ubuntu-touch-sounds_15.08_all.deb Connection failed

反过来,这不允许我启动 Xfce GUI。我觉得我已经尝试了一切(在过去 7 个小时左右)。

我之前安装了 Kali Linux,但已将其卸载,并尝试通过 Ubuntu 运行该安装程序。

答案1

尝试一下:以纯文本模式启动

Switch on your computer. Wait until the BIOS has finished loading, and press and hold Shift, which will bring up the Grub menu.

Select the line which starts with Advanced options.

Select the line ending with (recovery mode)

Press Return and your machine will begin the boot process.

片刻之后,您的电脑应该会显示一个包含多个选项的菜单,包括“Drop to root shell prompt”。

Press Return with this option highlighted.

电脑将在终端中启动。

运行以下命令:

以读写模式挂载分区

mount -o remount,rw /

mount --all

更新存储库

apt-get update

安装 aptitude 和 deborphan

apt-get install --reinstall aptitude deborphan

消除 Ubuntu Xfce 中不必要的 gnome 组件

 aptitude remove '?and(?reverse-depends(gnome),?not(?reverse-depends(?exact-name(xubuntu-desktop))))'

安装 xubuntu-desktop

 apt-get install --reinstall xubuntu-desktop

消除孤立包

 deborphan

 apt-get --purge remove $(deborphan)

 deborphan --libdevel

 apt-get --purge remove $(deborphan --libdevel)

 deborphan --find-config

 dpkg --purge $(deborphan --find-config)

删除不必要的包

 apt-get autoremove

删除下载的软件包

 apt-get clean

重启系统

reboot

相关内容