ubuntu 17.04 can not install kernel-package,help!

Ubuntu手机、平板等ARM设备支持
回复
wanggaoqiu
帖子: 52
注册时间: 2009-03-30 11:31
送出感谢: 4 次
接收感谢: 0

ubuntu 17.04 can not install kernel-package,help!

#1

帖子 wanggaoqiu » 2017-06-03 10:33

a@a-MBX-CHT2:~$ sudo apt-get install kernel-package
[sudo] password for a:
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:
kernel-package : Depends: xmlto
Recommends: docbook-utils but it is not going to be installed
Recommends: uboot-mkimage but it is not installable
Recommends: kernel-common but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
a@a-MBX-CHT2:~$ sudo apt --fix-broken install kernel-package
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:
kernel-package : Depends: xmlto
Recommends: docbook-utils but it is not going to be installed
Recommends: uboot-mkimage but it is not installable
Recommends: kernel-common but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
a@a-MBX-CHT2:~$ sudo apt-get --fix-broken install kernel-package
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:
kernel-package : Depends: xmlto
Recommends: docbook-utils but it is not going to be installed
Recommends: uboot-mkimage but it is not installable
Recommends: kernel-common but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
头像
vickycq
论坛版主
帖子: 4552
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
送出感谢: 100 次
接收感谢: 994 次
联系:

Re: ubuntu 17.04 can not install kernel-package,help!

#2

帖子 vickycq » 2017-06-03 13:49

首先您需要说明您的 Ubuntu 版本,其次您需要检查是否有混用软件源的情况。如果没有,您需要尝试重新刷新一次软件包列表,再尝试安装。如果您使用的是 Ubuntu 16.04/16.10/17.04,您可能需要使用 sudo apt-get --no-install-recommends install kernel-package 来暂时绕过问题。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
wanggaoqiu
帖子: 52
注册时间: 2009-03-30 11:31
送出感谢: 4 次
接收感谢: 0

Re: ubuntu 17.04 can not install kernel-package,help!

#3

帖子 wanggaoqiu » 2017-06-05 11:35

vickycq 写了:首先您需要说明您的 Ubuntu 版本,其次您需要检查是否有混用软件源的情况。如果没有,您需要尝试重新刷新一次软件包列表,再尝试安装。如果您使用的是 Ubuntu 16.04/16.10/17.04,您可能需要使用 sudo apt-get --no-install-recommends install kernel-package 来暂时绕过问题。
版本:ubuntu 17.04
wanggaoqiu
帖子: 52
注册时间: 2009-03-30 11:31
送出感谢: 4 次
接收感谢: 0

Re: ubuntu 17.04 can not install kernel-package,help!

#4

帖子 wanggaoqiu » 2017-06-05 11:48

have no use:

a@a-MBX-CHT2:~$ sudo apt-get update
[sudo] password for a:
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty InRelease [243 kB]
Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates InRelease [89.2 kB]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports InRelease [89.2 kB]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security InRelease [89.2 kB]
Ign:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty InRelease
Get:6 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/main i386 Packages [1,204 kB]
Get:5 http://archive.canonical.com/ubuntu zesty InRelease [10.2 kB]
Ign:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates InRelease
Ign:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports InRelease
Get:7 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/main amd64 Packages [1,207 kB]
Ign:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security InRelease
Ign:5 http://archive.canonical.com/ubuntu zesty InRelease
Get:8 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/main Translation-en [577 kB]
Get:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/main amd64 DEP-11 Metadata [536 kB]
Get:10 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/main DEP-11 64x64 Icons [373 kB]
Get:11 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/restricted amd64 Packages [8,672 B]
Get:12 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/restricted i386 Packages [8,648 B]
Get:13 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/restricted Translation-en [2,724 B]
Get:14 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/restricted amd64 DEP-11 Metadata [185 B]
Get:15 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/universe i386 Packages [8,037 kB]
Get:16 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/universe amd64 Packages [8,068 kB]
Get:17 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/universe Translation-en [4,671 kB]
Get:18 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/universe amd64 DEP-11 Metadata [2,713 kB]
Get:19 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/universe DEP-11 64x64 Icons [7,842 kB]
Get:20 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/multiverse amd64 Packages [154 kB]
Get:21 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/multiverse i386 Packages [147 kB]
Get:22 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/multiverse Translation-en [109 kB]
Get:23 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/multiverse amd64 DEP-11 Metadata [43.3 kB]
Get:24 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty/multiverse DEP-11 64x64 Icons [207 kB]
Get:25 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/main i386 Packages [94.4 kB]
Get:26 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/main amd64 Packages [96.2 kB]
Get:27 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/main Translation-en [43.0 kB]
Get:28 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/main amd64 DEP-11 Metadata [41.8 kB]
Get:29 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/main DEP-11 64x64 Icons [14.0 kB]
Get:30 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/restricted amd64 Packages [2,168 B]
Get:31 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/restricted i386 Packages [2,156 B]
Get:32 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/restricted Translation-en [1,280 B]
Get:33 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/restricted amd64 DEP-11 Metadata [193 B]
Get:34 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/universe i386 Packages [53.6 kB]
Get:35 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/universe amd64 Packages [53.7 kB]
Get:36 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/universe Translation-en [31.2 kB]
Get:37 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/universe amd64 DEP-11 Metadata [54.1 kB]
Get:38 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/universe DEP-11 64x64 Icons [43.5 kB]
Get:39 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/multiverse amd64 Packages [4,172 B]
Get:40 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/multiverse i386 Packages [4,320 B]
Get:41 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/multiverse Translation-en [2,168 B]
Get:42 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:43 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates/multiverse DEP-11 64x64 Icons [2,638 B]
Get:44 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports/main i386 Packages [1,480 B]
Get:45 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports/main amd64 Packages [1,480 B]
Get:46 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports/main Translation-en [664 B]
Get:47 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports/main amd64 DEP-11 Metadata [208 B]
Get:48 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports/main DEP-11 64x64 Icons [29 B]
Get:49 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports/restricted amd64 DEP-11 Metadata [194 B]
Get:50 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports/universe amd64 Packages [2,720 B]
Get:51 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports/universe i386 Packages [2,724 B]
Get:52 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports/universe Translation-en [1,176 B]
Get:53 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports/universe amd64 DEP-11 Metadata [3,976 B]
Get:54 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports/universe DEP-11 64x64 Icons [2,715 B]
Get:55 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports/multiverse amd64 DEP-11 Metadata [212 B]
Get:56 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports/multiverse DEP-11 64x64 Icons [29 B]
Get:57 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/main i386 Packages [65.5 kB]
Get:58 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/main amd64 Packages [67.0 kB]
Get:59 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/main Translation-en [29.6 kB]
Get:60 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/main amd64 DEP-11 Metadata [5,808 B]
Get:61 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/main DEP-11 64x64 Icons [5,289 B]
Get:62 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/restricted i386 Packages [2,156 B]
Get:63 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/restricted amd64 Packages [2,168 B]
Get:64 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/restricted Translation-en [1,280 B]
Get:65 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/restricted amd64 DEP-11 Metadata [192 B]
Get:66 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/universe i386 Packages [28.7 kB]
Get:67 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/universe amd64 Packages [28.8 kB]
Get:68 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/universe Translation-en [19.9 kB]
Get:69 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/universe amd64 DEP-11 Metadata [5,040 B]
Get:70 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/universe DEP-11 64x64 Icons [11.8 kB]
Get:71 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/multiverse i386 Packages [1,972 B]
Get:72 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/multiverse amd64 Packages [1,820 B]
Get:73 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/multiverse Translation-en [1,020 B]
Get:74 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/multiverse amd64 DEP-11 Metadata [208 B]
Get:75 http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security/multiverse DEP-11 64x64 Icons [29 B]
Fetched 36.8 MB in 1min 35s (387 kB/s)
Reading package lists... Done
W: GPG error: http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
W: The repository 'http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
W: The repository 'http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
W: The repository 'http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
W: The repository 'http://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.canonical.com/ubuntu zesty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
W: The repository 'http://archive.canonical.com/ubuntu zesty InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
a@a-MBX-CHT2:~$ sudo apt-get install kernel-package
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:
kernel-package : Depends: xmlto
Recommends: docbook-utils but it is not going to be installed
Recommends: uboot-mkimage but it is not installable
Recommends: kernel-common but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
a@a-MBX-CHT2:~$ sudo apt-get --no-install-recommends install kernel-package
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:
kernel-package : Depends: xmlto
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
头像
vickycq
论坛版主
帖子: 4552
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
送出感谢: 100 次
接收感谢: 994 次
联系:

Re: ubuntu 17.04 can not install kernel-package,help!

#5

帖子 vickycq » 2017-06-05 13:04

'xmlto' 位于 Ubuntu 17.04 软件源中,您的软件包管理器目前可能处于迷惑状态
尝试执行以下步骤
1. 进入软件源设置界面,选择 mirrors.tuna.tsinghua.edu.cn 或 mirrors.ustc.edu.cn,再选择 https。
2. 按顺序执行以下指令
执行 autoremove 时,一定要注意观察软件包管理器给出的卸载方案是否合理。不要轻易继续

代码: 全选

sudo rm /var/lib/apt/lists/partial/*
sudo rm /var/lib/apt/lists/*
sudo apt clean
sudo apt update
sudo apt purge kernel-package
sudo apt autoremove
sudo apt --no-install-recommends install kernel-package
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
wanggaoqiu
帖子: 52
注册时间: 2009-03-30 11:31
送出感谢: 4 次
接收感谢: 0

Re: ubuntu 17.04 can not install kernel-package,help!

#6

帖子 wanggaoqiu » 2017-06-05 14:22

vickycq 写了:'xmlto' 位于 Ubuntu 17.04 软件源中,您的软件包管理器目前可能处于迷惑状态
尝试执行以下步骤
1. 进入软件源设置界面,选择 mirrors.tuna.tsinghua.edu.cn 或 mirrors.ustc.edu.cn,再选择 https。
2. 按顺序执行以下指令
执行 autoremove 时,一定要注意观察软件包管理器给出的卸载方案是否合理。不要轻易继续

代码: 全选

sudo rm /var/lib/apt/lists/partial/*
sudo rm /var/lib/apt/lists/*
sudo apt clean
sudo apt update
sudo apt purge kernel-package
sudo apt autoremove
sudo apt --no-install-recommends install kernel-package
源的选择上,无法选择“https”。没有这项可选。只有http.
头像
vickycq
论坛版主
帖子: 4552
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
送出感谢: 100 次
接收感谢: 994 次
联系:

Re: ubuntu 17.04 can not install kernel-package,help!

#7

帖子 vickycq » 2017-06-05 15:25

wanggaoqiu 写了:源的选择上,无法选择“https”。没有这项可选。只有http.
安装 apt-transport-https
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复

回到 “手机和平板”