【ubuntu】ubuntu18.04安装aircrack-ng出现You might want to run ‘apt --fix-broken install‘ to correct these

问题log

# apt-get install aircrack-ng
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 aircrack-ng : Depends: ethtool but it is not going to be installed
               Recommends: ieee-data but it is not going to be installed
 stacer : Depends: gconf2
          Depends: gconf-service
          Depends: libappindicator1 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

解决方案

根据提示直接执行apt --fix-broken install

t# apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  gconf-service gconf-service-backend gconf2 gconf2-common libappindicator1
  libgconf-2-4 libindicator7
Suggested packages:
  gconf-defaults-service indicator-application
The following NEW packages will be installed:
  gconf-service gconf-service-backend gconf2 gconf2-common libappindicator1
  libgconf-2-4 libindicator7
0 upgraded, 7 newly installed, 0 to remove and 300 not upgraded.
1 not fully installed or removed.
Need to get 0 B/952 kB of archives.
After this operation, 8 816 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package gconf2-common.
(Reading database ... 190929 files and directories currently installed.)
Preparing to unpack .../0-gconf2-common_3.2.6-4ubuntu1_all.deb ...
Unpacking gconf2-common (3.2.6-4ubuntu1) ...
Selecting previously unselected package libgconf-2-4:amd64.
Preparing to unpack .../1-libgconf-2-4_3.2.6-4ubuntu1_amd64.deb ...
Unpacking libgconf-2-4:amd64 (3.2.6-4ubuntu1) ...
Selecting previously unselected package gconf-service-backend.
Preparing to unpack .../2-gconf-service-backend_3.2.6-4ubuntu1_amd64.deb ...
Unpacking gconf-service-backend (3.2.6-4ubuntu1) ...
Selecting previously unselected package gconf-service.
Preparing to unpack .../3-gconf-service_3.2.6-4ubuntu1_amd64.deb ...
Unpacking gconf-service (3.2.6-4ubuntu1) ...
Selecting previously unselected package gconf2.
Preparing to unpack .../4-gconf2_3.2.6-4ubuntu1_amd64.deb ...
Unpacking gconf2 (3.2.6-4ubuntu1) ...
Selecting previously unselected package libindicator7.
Preparing to unpack .../5-libindicator7_16.10.0+18.04.20180321.1-0ubuntu1_amd64.deb ...
Unpacking libindicator7 (16.10.0+18.04.20180321.1-0ubuntu1) ...
Selecting previously unselected package libappindicator1.
Preparing to unpack .../6-libappindicator1_12.10.1+18.04.20200408.1-0ubuntu1_amd64.deb ...
Unpacking libappindicator1 (12.10.1+18.04.20200408.1-0ubuntu1) ...
Setting up gconf2-common (3.2.6-4ubuntu1) ...

Creating config file /etc/gconf/2/path with new version
Setting up libindicator7 (16.10.0+18.04.20180321.1-0ubuntu1) ...
Setting up libappindicator1 (12.10.1+18.04.20200408.1-0ubuntu1) ...
Processing triggers for man-db (2.8.3-2) ...
Processing triggers for sgml-base (1.29) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libgconf-2-4:amd64 (3.2.6-4ubuntu1) ...
Setting up gconf-service-backend (3.2.6-4ubuntu1) ...
Setting up gconf-service (3.2.6-4ubuntu1) ...
Setting up gconf2 (3.2.6-4ubuntu1) ...
Setting up stacer (1.0.7) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

重新安装 aircrack-ng

# apt-get install aircrack-ng
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  ethtool ieee-data
The following NEW packages will be installed:
  aircrack-ng ethtool ieee-data
0 upgraded, 3 newly installed, 0 to remove and 300 not upgraded.
Need to get 4 361 kB of archives.
After this operation, 14,5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.aliyun.com/ubuntu bionic/main amd64 ethtool amd64 1:4.15-0ubuntu1 [114 kB]
Get:2 http://mirrors.aliyun.com/ubuntu bionic/universe amd64 aircrack-ng amd64 1:1.2-0~rc4-4 [2 707 kB]
Get:3 http://mirrors.aliyun.com/ubuntu bionic/main amd64 ieee-data all 20180204.1 [1 539 kB]
Fetched 4 361 kB in 1s (4 057 kB/s)
Selecting previously unselected package ethtool.
(Reading database ... 191112 files and directories currently installed.)
Preparing to unpack .../ethtool_1%3a4.15-0ubuntu1_amd64.deb ...
Unpacking ethtool (1:4.15-0ubuntu1) ...
Selecting previously unselected package aircrack-ng.
Preparing to unpack .../aircrack-ng_1%3a1.2-0~rc4-4_amd64.deb ...
Unpacking aircrack-ng (1:1.2-0~rc4-4) ...
Selecting previously unselected package ieee-data.
Preparing to unpack .../ieee-data_20180204.1_all.deb ...
Unpacking ieee-data (20180204.1) ...
Setting up ieee-data (20180204.1) ...
Setting up ethtool (1:4.15-0ubuntu1) ...
Setting up aircrack-ng (1:1.2-0~rc4-4) ...
Processing triggers for man-db (2.8.3-2) ...

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

wellnw

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值