Solve Unment dependencies under ubuntu

Problem introduction##

# apt install libcurl3
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:
 virtualbox-6.0: Depends:libfontconfig1(>=2.11.94) but it is not going to be installed
     Depends: libgl1-mesa-glx but it is not going to be installed or
       libgl1
     Depends:libice6(>=1:1.0.0) but it is not going to be installed
     Depends:libopus0(>=1.1) but it is not going to be installed
     Depends: libsdl1.2debian(>=1.2.11) but it is not going to be installed
     Depends: libsm6 but it is not going to be installed
     Depends:libvpx3(>=1.5.0) but it is not going to be installed
     Depends: libx11-xcb1 but it is not going to be installed
     Depends:libxcursor1(>1.1.2) but it is not going to be installed
     Depends: libxmu6 but it is not going to be installed
     Depends: libxrender1 but it is not going to be installed
     Depends: libxt6 but it is not going to be installed
     Recommends: libasound2
     Recommends: libpulse0 but it is not going to be installed
     Recommends: libsdl-ttf2.0-0 but it is not going to be installed
     Recommends: gcc but it is not going to be installed
     Recommends: make or
        build-essential but it is not going to be installed or
        dpkg-dev but it is not going to be installed
     Recommends: binutils but it is not going to be installed
     Recommends: pdf-viewer
     Recommends: libgl1
E: Unmet dependencies. Try 'apt-get -f install'with no packages(or specify a solution).

The reason for this problem is that under Ubuntu, for example, Ubuntu 14.04 or 16.04 generally does not appear broken dependencies, or unmet dependencies, but if we use dpkg to forcibly install certain deb packages, or whether in build-dep When you manually change the files and versions of some Packages, the problems mentioned above may occur when you use apt-get install or build-dep to install the packages again.

Solution##

We can execute the command according to the prompt, if the problem remains the same, then we try to execute the command

first step

sudo apt-get-f install
sudo apt-get update
sudo apt-get upgrade

second step

sudo apt-get update
sudo apt-get clean
sudo apt-get autoremove

third step

sudo apt --fix-broken install
sudo apt-get update && sudo apt-get upgrade
sudo dpkg --configure -a
sudo apt-get install -f

After performing the above steps, basically the problem can be solved

Recommended Posts

Solve Unment dependencies under ubuntu
Install apache+PHP under Ubuntu
Install node.js under Ubuntu
Install python3.6 under Ubuntu 16.04
Install mysql under Ubuntu 16.04
Install Thrift under ubuntu 14.10
Install OpenJDK10 under Ubuntu
Install Caffe under Ubuntu 14.04
Python MySQLd under Ubuntu
Start working under ubuntu
[python] python2 and python3 under ubuntu
Use iptables under ubuntu
2018-09-11 Install arduino under Ubuntu
LNMP installation under Ubuntu
Network configuration under Ubuntu
Install ROS under ROS Ubuntu 18.04[2]
Install MySQL under Ubuntu
Install Yarm-PM2 under Ubuntu
Deploy FTP server under ubuntu
Open SSH service under Ubuntu
Use sublime tex under ubuntu
Modify shortcut keys under Ubuntu 18.04
Use of mediawiki under ubuntu
Install server-side Shadowsocks under Ubuntu 16.04
Open SSH service under Ubuntu
DNS service construction under Ubuntu
Install rgl package under Ubuntu
Use QQ under Ubuntu 13.10, suitable for 14.10
Installation of deb package under Ubuntu
Deploy the mail system under Ubuntu 19.10
How to compile ijkplayer-android under ubuntu
Install 3 single-cell R packages under Ubuntu
Install and deploy Gerrit under Ubuntu
Install MySQL under Ubuntu 18.04 (graphic tutorial)
Install JDK1.8 original under Ubuntu Kylin
Redis installation under ubuntu and windows
Small tool: install screenshot tool under ubuntu
Install nodejs and npm under Ubuntu 16.04
Python Chinese encoding setting under ubuntu
Ubuntu 16.04 installation graphic tutorial under VMware 12
Installation of Docker CE under Ubuntu
Coexistence of CUDA8.0 and CUDA9.0 under Ubuntu 16.04
How to install Audacious under Ubuntu
How to install Tensorflow under ubuntu 16.04
Compile and install QEMU under Ubuntu