从 14.04 错误安装到 16.04 后没有桌面和互联网

从 14.04 错误安装到 16.04 后没有桌面和互联网

我有一个双启动系统,新的 ubuntu LTS 18.04 将于下个月发布,所以我想将我的系统从 14.04 升级到 18.04。升级的最佳方式是先升级到 16.04,然后再升级到 18.04。今天我将系统从 14.04 升级到 16.04,一切似乎都运行良好,但在安装更新的过程中,我的系统完全冻结了,我被迫重新启动系统。

重启后,当我进入 ubuntu 时,它卡在了启动界面

在此处输入图片描述

之后,我advance option for ubuntu > recovery mode使用用户名和密码在终端登录系统。首先,我尝试了lsb_releas -a命令,它确认我有 ubuntu 16.04

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.x LTS
Release:    16.04
Codename:   xenial

然后我做了一个apt-get update但它返回了一个relocation error我使用它解决了这个答案(必须安装 amd6 和 i386 文件)通过使用第二个 Windows 操作系统下载文件。然后我使用ping -c 1 google.com返回的互联网连接检查了我的互联网连接Unknown host error。没有互联网,我无法解决或下载我的 ubuntu 中的任何文件。如果我在这个终端上连接到网络,只有 ubuntu 16.04,我肯定可以解决我的其他问题。有什么想法如何解决这个问题吗?

这次失败后,我决定不升级到 18.04。我现在想正确安装 16.04

Networkmanger is not runningPS 我不记得我做了什么,但我在我的 ubuntu 16.04 中看到了错误

如果它有帮助我的rfkill list all外观类似于这个

0: brcmwl-0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: dell-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
2: dell-wwan: Wireless WAN
Soft blocked: no
Hard blocked: no

3: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no

编辑

由于某些情况,我无法进行全新安装,这迫使​​我纠正升级问题。因此,我能够通过执行以下命令恢复使用新 16.04 的桌面和互联网

sudo dpkg --configure -a
#kept all intemediary prompts in default option ie "N"
#After this restart the systemn

然后我重新启动了系统,这恢复了我的互联网连接,并且在恢复模式终端中

sudo apt-get update
sudo apt-get upgrade #not working shows error
sudo apt-get install -f #not working shows error
sudo dpkg --configure -a

现在再次重新启动它,它恢复了我的桌面,但现在我的apt-get桌面不工作了(互联网正常)。

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 click : Depends: python3-click (= 0.4.21.1ubuntu0.2) but 6.2-2ubuntu1 is installed
 click-apparmor : Depends: python3-apparmor-click (= 0.2ubuntu1) but 0.3.13.1 is installed
 cpp-5 : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.9 is installed
 g++-5 : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.9 is installed
 gcc-5 : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.9 is installed
 libasan2 : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.9 is installed
 libavformat-dev : Depends: libavcodec-dev (= 7:2.8.11-0ubuntu0.16.04.1) but 6:9.20-0ubuntu0.14.04.2+fdkaac is installed
                   Depends: libavutil-dev (= 7:2.8.11-0ubuntu0.16.04.1) but 6:9.20-0ubuntu0.14.04.2+fdkaac is installed
                   Depends: libswresample-dev (= 7:2.8.11-0ubuntu0.16.04.1) but it is not installed
 libboost-context-dev : Depends: libboost-context1.54-dev but it is not installable
 libboost-dev : Depends: libboost1.54-dev but it is not installable
 libboost-serialization-dev : Depends: libboost-serialization1.54-dev but it is not installable
 libgcc-5-dev : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.9 is installed
 libmpx0 : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.9 is installed
 libproxy-tools : Depends: libproxy1 (>= 0.4.7) but it is not installable
 libproxy1-plugin-gsettings : Depends: libproxy1 (= 0.4.11-0ubuntu4) but it is not installable
 libproxy1-plugin-networkmanager : Depends: libproxy1 (= 0.4.11-0ubuntu4) but it is not installable
 libstdc++-5-dev : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.9 is installed
                   Depends: libstdc++6 (>= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.9 is installed
 libswscale-dev : Depends: libavutil-dev (= 7:2.8.11-0ubuntu0.16.04.1) but 6:9.20-0ubuntu0.14.04.2+fdkaac is installed
 libwebkitgtk-1.0-0 : Depends: libjavascriptcoregtk-1.0-0 (= 2.4.11-0ubuntu0.1) but 2.4.10-0ubuntu0.14.04.1 is installed
                      Depends: libwebkitgtk-1.0-common (>= 2.4.11) but 2.4.10-0ubuntu0.14.04.1 is installed
 python-kivy : Depends: python-gst-1.0 but it is not installed
               Depends: libsdl2-image-2.0-0 (>= 2.0.0) but it is not installed
               Depends: libsdl2-mixer-2.0-0 (>= 2.0.0) but it is not installed
               Depends: libsdl2-ttf-2.0-0 (>= 2.0.0) but it is not installed
E: Unmet dependencies. Try using -f.

我再次这样做,sudo dpkg --configure -a结果显示了这些错误

Errors were encountered while processing:
 python-kivy
 libswscale-dev:amd64
 libwebkitgtk-1.0-0:amd64
 libavformat-dev:amd64
 libunity-scopes1.0:amd64
 unity-scope-mediascanner2
 unity-scope-scopes

似乎我有不兼容的 python-kivy,所以我试图清除 pyton-kivy

sudo apt-get purge python-kivy
sudo apt-get remove python-kivy

但又显示Unmet dependencies错误。我的apt-get电脑根本无法工作,无法安装或卸载应用程序。有办法解决这个问题吗

答案1

在我升级失败后,我成功升级到了 16.04。我解决了unmet dependency错误通过更改服务器找到更好的解决方案。我通过为每个错误找到解决方案来解决其他问题。最好在互联网上搜索这些错误并使用推荐的解决方案。我还手动下载了包文件并使用进行安装dpkg。这些是帮助我解决问题的重要命令

#(Not in any order)
sudo dpkg --configure -a #this is an important command 
sudo apt-get update
sudo apt-get install -f #this is an important command 
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo apt-get autoclean
sudo dpkg -i <package name>

#this last one I used after solving my desktop and internet problems
sudo update-manager -d

相关内容