apt-get 安装没有自动依赖

之前安装teamviewer时是用deb包安装的,没有装完。再装subversion的时候就有了下面的提示:

z0z@z0z:/etc$ sudo apt-get -f install subversion
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:
 subversion : Depends: libsvn1 (= 1.9.3-2ubuntu1.1) but it is not going to be installed
              Depends: libapr1 (>= 1.5.0) but it is not going to be installed
              Depends: libaprutil1 (>= 1.3.2+dfsg) but it is not going to be installed
 teamviewer : Depends: libqt5x11extras5 (>= 5.2) but it is not going to be installed
              Depends: qtdeclarative5-controls-plugin (>= 5.2) but it is not going to be installed or
                       qml-module-qtquick-controls (>= 5.2) but it is not going to be installed
              Depends: qtdeclarative5-dialogs-plugin (>= 5.2) but it is not going to be installed or
                       qml-module-qtquick-dialogs (>= 5.2) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

解决方法是:

 sudo apt --fix-broken install
 sudo apt-get update
 sudo apt-get upgrade
z0z@z0z:/etc$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.13.0-36 linux-headers-4.13.0-36-generic linux-image-4.13.0-36-generic linux-image-extra-4.13.0-36-generic linux-signed-image-4.13.0-36-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libqt5x11extras5 qml-module-qtquick-controls qml-module-qtquick-dialogs qml-module-qtquick-privatewidgets qtdeclarative5-controls-plugin qtdeclarative5-dialogs-plugin
The following NEW packages will be installed:
  libqt5x11extras5 qml-module-qtquick-controls qml-module-qtquick-dialogs qml-module-qtquick-privatewidgets qtdeclarative5-controls-plugin qtdeclarative5-dialogs-plugin
0 upgraded, 6 newly installed, 0 to remove and 392 not upgraded.
1 not fully installed or removed.
Need to get 787 kB of archives.
After this operation, 3,511 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 libqt5x11extras5 amd64 5.5.1-3build1 [7,876 B]
Get:2 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 qml-module-qtquick-controls amd64 5.5.1-1ubuntu1 [643 kB]
Get:3 http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 qtdeclarative5-controls-plugin all 5.5.1-1ubuntu1 [4,032 B]
Get:4 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 qml-module-qtquick-privatewidgets amd64 5.5.1-1ubuntu1 [38.9 kB]
Get:5 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 qml-module-qtquick-dialogs amd64 5.5.1-1ubuntu1 [89.0 kB]
Get:6 http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 qtdeclarative5-dialogs-plugin amd64 5.5.1-1ubuntu1 [4,044 B]
Fetched 787 kB in 2s (350 kB/s)                           
Selecting previously unselected package libqt5x11extras5:amd64.
(Reading database ... 290837 files and directories currently installed.)
Preparing to unpack .../libqt5x11extras5_5.5.1-3build1_amd64.deb ...
Unpacking libqt5x11extras5:amd64 (5.5.1-3build1) ...
Selecting previously unselected package qml-module-qtquick-controls:amd64.
Preparing to unpack .../qml-module-qtquick-controls_5.5.1-1ubuntu1_amd64.deb ...
Unpacking qml-module-qtquick-controls:amd64 (5.5.1-1ubuntu1) ...
Selecting previously unselected package qtdeclarative5-controls-plugin.
Preparing to unpack .../qtdeclarative5-controls-plugin_5.5.1-1ubuntu1_all.deb ...
Unpacking qtdeclarative5-controls-plugin (5.5.1-1ubuntu1) ...
Selecting previously unselected package qml-module-qtquick-privatewidgets:amd64.
Preparing to unpack .../qml-module-qtquick-privatewidgets_5.5.1-1ubuntu1_amd64.deb ...
Unpacking qml-module-qtquick-privatewidgets:amd64 (5.5.1-1ubuntu1) ...
Selecting previously unselected package qml-module-qtquick-dialogs:amd64.
Preparing to unpack .../qml-module-qtquick-dialogs_5.5.1-1ubuntu1_amd64.deb ...
Unpacking qml-module-qtquick-dialogs:amd64 (5.5.1-1ubuntu1) ...
Selecting previously unselected package qtdeclarative5-dialogs-plugin:amd64.
Preparing to unpack .../qtdeclarative5-dialogs-plugin_5.5.1-1ubuntu1_amd64.deb ...
Unpacking qtdeclarative5-dialogs-plugin:amd64 (5.5.1-1ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libqt5x11extras5:amd64 (5.5.1-3build1) ...
Setting up qml-module-qtquick-controls:amd64 (5.5.1-1ubuntu1) ...
Setting up qtdeclarative5-controls-plugin (5.5.1-1ubuntu1) ...
Setting up qml-module-qtquick-privatewidgets:amd64 (5.5.1-1ubuntu1) ...
Setting up qml-module-qtquick-dialogs:amd64 (5.5.1-1ubuntu1) ...
Setting up qtdeclarative5-dialogs-plugin:amd64 (5.5.1-1ubuntu1) ...
Setting up teamviewer (13.2.26559) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...

参考链接:https://blog.csdn.net/jinguangliu/article/details/78145423

你可能感兴趣的:(linux)