首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在从14.04开始安装16.04之后,没有桌面和互联网

在从14.04开始安装16.04之后,没有桌面和互联网
EN

Ask Ubuntu用户
提问于 2018-03-18 16:29:05
回答 1查看 338关注 0票数 0

我有一个双引导系统和新的ubuntu 18.04将发布下个月,所以我想升级我的系统从14.04到18.04。升级的最好方法是先升到16.04,然后再升到18.04。今天我把我的系统从14.04升级到16.04,一切看起来都很好,但是在安装更新的过程中,我的系统完全冻结了,我被迫重新启动系统。

重新启动后,当我去ubuntu时,它就卡在启动程序中了。

之后,我使用用户名和密码登录到advance option for ubuntu > recovery mode终端中的系统。首先,我尝试了lsb_releas -a命令,它确认了我已经拥有了ubuntu16.04

代码语言:javascript
复制
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

我不记得我做了什么,但我在我的ubuntu16.04中看到了Networkmanger is not running错误

如果它对我的rfkill list all有帮助的话

代码语言:javascript
复制
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重新获得我的桌面,并返回互联网

代码语言:javascript
复制
sudo dpkg --configure -a
#kept all intemediary prompts in default option ie "N"
#After this restart the systemn

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

代码语言:javascript
复制
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不工作(互联网很好)。

代码语言:javascript
复制
$ 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,它向我展示了这些错误

代码语言:javascript
复制
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

好像我有个无与伦比的巨蟒,所以我试着清除皮顿?基维。

代码语言:javascript
复制
sudo apt-get purge python-kivy
sudo apt-get remove python-kivy

但它再次显示了Unmet dependencies错误。我的apt-get根本不起作用,不能安装或卸载apps.any --如何解决这个问题

EN

回答 1

Ask Ubuntu用户

发布于 2018-03-19 06:13:45

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

代码语言:javascript
复制
#(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
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1017034

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档