求问:更新软件源时,为何会忽略某些软件源?!还有,更新并安装最新的软件包出错!求解!

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
deii
帖子: 146
注册时间: 2018-04-24 20:06

求问:更新软件源时,为何会忽略某些软件源?!还有,更新并安装最新的软件包出错!求解!

#1

帖子 deii » 2018-07-03 15:07

代码如下:

代码: 全选

deii@deii-TVB01:~$ sudo apt update
[sudo] deii 的密码: 
命中:1 http://mirrors.aliyun.com/ubuntu xenial InRelease                       
命中:2 http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease       
命中:3 http://ppa.launchpad.net/budgie-remix/ppa/ubuntu xenial InRelease       
获取:4 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]   
获取:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]    
命中:6 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial InRelease
获取:7 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] 
命中:8 http://ppa.launchpad.net/webupd8team/indicator-kdeconnect/ubuntu xenial InRelease
忽略:9 http://mirror.ppa.trinitydesktop.org/trinity/trinity-r14.0.0/ubuntu xenial InRelease
命中:10 https://repos.codelite.org/ubuntu xenial InRelease                     
忽略:11 http://mirror.ppa.trinitydesktop.org/trinity/trinity-builddeps-r14.0.0/ubuntu xenial InRelease
命中:12 http://ppa.launchpad.net/zorinos/patches/ubuntu xenial InRelease       
命中:14 http://ppa.launchpad.net/zorinos/stable/ubuntu xenial InRelease        
命中:15 http://ftp.fau.de/trinity/trinity-builddeps-r14.0.0/ubuntu xenial Release
命中:16 http://archive.canonical.com/ubuntu xenial InRelease                   
命中:13 http://mirror.ntmm.org/trinity/trinity-r14.0.0/ubuntu xenial Release   
命中:18 https://packages.zorinos.com/patches xenial InRelease                  
命中:20 https://packages.zorinos.com/stable xenial InRelease                   
已下载 323 kB,耗时 10秒 (31.7 kB/s)                                           
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
有 9 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
deii@deii-TVB01:~$ apt list --upgradable
正在列表... 完成
gnome-software/xenial 3.20.5-0ubuntu0.16.04.11+zorin1 amd64 [可从该版本升级:3.20.5-0ubuntu0.16.04.10+zorin1]
gnome-software-common/xenial,xenial 3.20.5-0ubuntu0.16.04.11+zorin1 all [可从该版本升级:3.20.5-0ubuntu0.16.04.10+zorin1]
libart-2.0-2/xenial 4:14.0.4-0ubuntu16.04.0+0 amd64 [可从该版本升级:2.3.21-2]
linux-generic-hwe-16.04/xenial-updates,xenial-security 4.15.0.24.46 amd64 [可从该版本升级:4.13.0.45.64]
linux-headers-generic/xenial-updates,xenial-security 4.4.0.130.136 amd64 [可从该版本升级:4.4.0.128.134]
linux-headers-generic-hwe-16.04/xenial-updates,xenial-security 4.15.0.24.46 amd64 [可从该版本升级:4.13.0.45.64]
linux-image-generic-hwe-16.04/xenial-updates,xenial-security 4.15.0.24.46 amd64 [可从该版本升级:4.13.0.45.64]
linux-libc-dev/xenial-updates,xenial-security 4.4.0-130.156 amd64 [可从该版本升级:4.4.0-128.154]
paper-icon-theme/xenial,xenial 1.5.719-201806241659~daily~ubuntu16.04.1 all [可从该版本升级:1.5.710-201806031447~daily~ubuntu16.04.1+zorin1]
deii@deii-TVB01:~$ sudo apt upgrade
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
正在计算更新... 完成
下列软件包是自动安装的并且现在不需要了:
  libappindicator1 libdbusmenu-gtk4 libindicator7 libmate-desktop-2-17
  libmatekbd-common libmatekbd4 libmatemixer-common libmatemixer0
  libqt5opengl5 libqt5sql5 libqt5sql5-sqlite libqt5webkit5
  linux-headers-4.4.0-128 linux-headers-4.4.0-128-generic
  ubuntu-mate-default-settings
使用'sudo apt autoremove'来卸载它(它们)。
下列【新】软件包将被安装:
  linux-headers-4.15.0-24 linux-headers-4.15.0-24-generic
  linux-headers-4.4.0-130 linux-headers-4.4.0-130-generic
  linux-image-4.15.0-24-generic linux-modules-4.15.0-24-generic
  linux-modules-extra-4.15.0-24-generic
下列软件包将被升级:
  gnome-software gnome-software-common libart-2.0-2 linux-generic-hwe-16.04
  linux-headers-generic linux-headers-generic-hwe-16.04
  linux-image-generic-hwe-16.04 linux-libc-dev paper-icon-theme
升级了 9 个软件包,新安装了 7 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 122 MB 的归档。
解压缩后会消耗 415 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-modules-4.15.0-24-generic amd64 4.15.0-24.26~16.04.1 [13.0 MB]
获取:2 http://ppa.launchpad.net/zorinos/patches/ubuntu xenial/main amd64 gnome-software amd64 3.20.5-0ubuntu0.16.04.11+zorin1 [260 kB]
获取:3 http://mirror.ntmm.org/trinity/trinity-r14.0.0/ubuntu xenial/main amd64 libart-2.0-2 amd64 4:14.0.4-0ubuntu16.04.0+0 [50.6 kB]
获取:4 http://ppa.launchpad.net/zorinos/patches/ubuntu xenial/main amd64 gnome-software-common all 3.20.5-0ubuntu0.16.04.11+zorin1 [3,050 kB]
获取:5 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-4.15.0-24-generic amd64 4.15.0-24.26~16.04.1 [7,878 kB]
获取:6 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-modules-extra-4.15.0-24-generic amd64 4.15.0-24.26~16.04.1 [32.6 MB]
获取:7 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-generic-hwe-16.04 amd64 4.15.0.24.46 [1,808 B]
获取:8 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-generic-hwe-16.04 amd64 4.15.0.24.46 [2,618 B]
获取:9 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.15.0-24 all 4.15.0-24.26~16.04.1 [11.0 MB]
获取:10 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.15.0-24-generic amd64 4.15.0-24.26~16.04.1 [1,090 kB]
获取:11 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-generic-hwe-16.04 amd64 4.15.0.24.46 [2,578 B]
获取:12 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-130 all 4.4.0-130.156 [10.0 MB]
获取:13 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-130-generic amd64 4.4.0-130.156 [815 kB]
获取:14 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-generic amd64 4.4.0.130.136 [2,498 B]
获取:15 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-libc-dev amd64 4.4.0-130.156 [866 kB]
获取:16 http://ppa.launchpad.net/zorinos/stable/ubuntu xenial/main amd64 paper-icon-theme all 1.5.719-201806241659~daily~ubuntu16.04.1 [41.0 MB]
已下载 122 MB,耗时 9分 4秒 (224 kB/s)                                         
(正在读取数据库 ... 系统当前共安装有 324817 个文件和目录。)
正准备解包 .../gnome-software_3.20.5-0ubuntu0.16.04.11+zorin1_amd64.deb  ...
正在将 gnome-software (3.20.5-0ubuntu0.16.04.11+zorin1) 解包到 (3.20.5-0ubuntu0.16.04.10+zorin1) 上 ...
正准备解包 .../gnome-software-common_3.20.5-0ubuntu0.16.04.11+zorin1_all.deb  ...
正在将 gnome-software-common (3.20.5-0ubuntu0.16.04.11+zorin1) 解包到 (3.20.5-0ubuntu0.16.04.10+zorin1) 上 ...
正准备解包 .../libart-2.0-2_4%3a14.0.4-0ubuntu16.04.0+0_amd64.deb  ...
正在将 libart-2.0-2:amd64 (4:14.0.4-0ubuntu16.04.0+0) 解包到 (2.3.21-2) 上 ...
正在选中未选择的软件包 linux-modules-4.15.0-24-generic。
正准备解包 .../linux-modules-4.15.0-24-generic_4.15.0-24.26~16.04.1_amd64.deb  ...
正在解包 linux-modules-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
正在选中未选择的软件包 linux-image-4.15.0-24-generic。
正准备解包 .../linux-image-4.15.0-24-generic_4.15.0-24.26~16.04.1_amd64.deb  ...
正在解包 linux-image-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
正在选中未选择的软件包 linux-modules-extra-4.15.0-24-generic。
正准备解包 .../linux-modules-extra-4.15.0-24-generic_4.15.0-24.26~16.04.1_amd64.deb  ...
正在解包 linux-modules-extra-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
正准备解包 .../linux-generic-hwe-16.04_4.15.0.24.46_amd64.deb  ...
正在将 linux-generic-hwe-16.04 (4.15.0.24.46) 解包到 (4.13.0.45.64) 上 ...
正准备解包 .../linux-image-generic-hwe-16.04_4.15.0.24.46_amd64.deb  ...
正在将 linux-image-generic-hwe-16.04 (4.15.0.24.46) 解包到 (4.13.0.45.64) 上 ...
正在选中未选择的软件包 linux-headers-4.15.0-24。
正准备解包 .../linux-headers-4.15.0-24_4.15.0-24.26~16.04.1_all.deb  ...
正在解包 linux-headers-4.15.0-24 (4.15.0-24.26~16.04.1) ...
正在选中未选择的软件包 linux-headers-4.15.0-24-generic。
正准备解包 .../linux-headers-4.15.0-24-generic_4.15.0-24.26~16.04.1_amd64.deb  ...
正在解包 linux-headers-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
正准备解包 .../linux-headers-generic-hwe-16.04_4.15.0.24.46_amd64.deb  ...
正在将 linux-headers-generic-hwe-16.04 (4.15.0.24.46) 解包到 (4.13.0.45.64) 上 ...
正在选中未选择的软件包 linux-headers-4.4.0-130。
正准备解包 .../linux-headers-4.4.0-130_4.4.0-130.156_all.deb  ...
正在解包 linux-headers-4.4.0-130 (4.4.0-130.156) ...
正在选中未选择的软件包 linux-headers-4.4.0-130-generic。
正准备解包 .../linux-headers-4.4.0-130-generic_4.4.0-130.156_amd64.deb  ...
正在解包 linux-headers-4.4.0-130-generic (4.4.0-130.156) ...
正准备解包 .../linux-headers-generic_4.4.0.130.136_amd64.deb  ...
正在将 linux-headers-generic (4.4.0.130.136) 解包到 (4.4.0.128.134) 上 ...
正准备解包 .../linux-libc-dev_4.4.0-130.156_amd64.deb  ...
正在将 linux-libc-dev:amd64 (4.4.0-130.156) 解包到 (4.4.0-128.154) 上 ...
正准备解包 .../paper-icon-theme_1.5.719-201806241659~daily~ubuntu16.04.1_all.deb  ...
正在将 paper-icon-theme (1.5.719-201806241659~daily~ubuntu16.04.1) 解包到 (1.5.710-201806031447~daily~ubuntu16.04.1+zorin1) 上 ...
dpkg:警告:无法删除原有的目录 /usr/share/icons/Paper-Mono-Dark :目录非空
正在处理用于 gnome-menus (3.13.3-6ubuntu5.1~xenialubuntu1) 的触发器 ...
正在处理用于 desktop-file-utils (0.22-1ubuntu5.2) 的触发器 ...
正在处理用于 mime-support (3.59ubuntu1) 的触发器 ...
正在处理用于 man-db (2.7.5-1) 的触发器 ...
正在处理用于 libglib2.0-0:i386 (2.48.2-0ubuntu1) 的触发器 ...
覆盖文件 /usr/share/glib-2.0/schemas/50_sogoupinyin.gschema.override 中指定的方案 org.gnome.settings-daemon.plugins.xsettings 中没有键 Gtk/IMModule;忽略对此键的覆盖。
正在处理用于 libglib2.0-0:amd64 (2.48.2-0ubuntu1) 的触发器 ...
覆盖文件 /usr/share/glib-2.0/schemas/50_sogoupinyin.gschema.override 中指定的方案 org.gnome.settings-daemon.plugins.xsettings 中没有键 Gtk/IMModule;忽略对此键的覆盖。
正在处理用于 hicolor-icon-theme (0.15-0ubuntu1) 的触发器 ...
正在处理用于 libc-bin (2.23-0ubuntu10) 的触发器 ...
正在设置 gnome-software-common (3.20.5-0ubuntu0.16.04.11+zorin1) ...
正在设置 gnome-software (3.20.5-0ubuntu0.16.04.11+zorin1) ...
正在设置 libart-2.0-2:amd64 (4:14.0.4-0ubuntu16.04.0+0) ...
正在设置 linux-modules-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
正在设置 linux-image-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.13.0-45-generic
I: /initrd.img.old is now a symlink to boot/initrd.img-4.13.0-45-generic
I: /vmlinuz is now a symlink to boot/vmlinuz-4.15.0-24-generic
I: /initrd.img is now a symlink to boot/initrd.img-4.15.0-24-generic
正在设置 linux-modules-extra-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
正在设置 linux-image-generic-hwe-16.04 (4.15.0.24.46) ...
正在设置 linux-headers-4.15.0-24 (4.15.0-24.26~16.04.1) ...
正在设置 linux-headers-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
/etc/kernel/header_postinst.d/dkms:
Error! The directory /var/lib/dkms/ashmem_linux/1.0/source/
does not appear to have module source located within it.  Build halted.
ERROR (dkms apport): kernel package linux-headers-4.15.0-24-generic is not supported
Error! Bad return status for module build on kernel: 4.15.0-24-generic (x86_64)
Consult /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/make.log for more information.
Error! The directory /var/lib/dkms/binder_linux/1.0/source/
does not appear to have module source located within it.  Build halted.
ERROR (dkms apport): kernel package linux-headers-4.15.0-24-generic is not supported
Error! Bad return status for module build on kernel: 4.15.0-24-generic (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.60/build/make.log for more information.
正在设置 linux-headers-generic-hwe-16.04 (4.15.0.24.46) ...
正在设置 linux-generic-hwe-16.04 (4.15.0.24.46) ...
正在设置 linux-headers-4.4.0-130 (4.4.0-130.156) ...
正在设置 linux-headers-4.4.0-130-generic (4.4.0-130.156) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.4.0-130-generic /boot/vmlinuz-4.4.0-130-generic
Error! The directory /var/lib/dkms/ashmem_linux/1.0/source/
does not appear to have module source located within it.  Build halted.
Error! The directory /var/lib/dkms/binder_linux/1.0/source/
does not appear to have module source located within it.  Build halted.
正在设置 linux-headers-generic (4.4.0.130.136) ...
正在设置 linux-libc-dev:amd64 (4.4.0-130.156) ...
正在设置 paper-icon-theme (1.5.719-201806241659~daily~ubuntu16.04.1) ...
update-alternatives: 使用 /usr/share/icons/Paper/cursor.theme 来在自动模式中提供 /usr/share/icons/default/index.theme (x-cursor-theme)
正在处理用于 libc-bin (2.23-0ubuntu10) 的触发器 ...
正在处理用于 linux-image-4.15.0-24-generic (4.15.0-24.26~16.04.1) 的触发器 ...
/etc/kernel/postinst.d/dkms:
Error! The directory /var/lib/dkms/ashmem_linux/1.0/source/
does not appear to have module source located within it.  Build halted.
ERROR (dkms apport): kernel package linux-headers-4.15.0-24-generic is not supported
Error! Bad return status for module build on kernel: 4.15.0-24-generic (x86_64)
Consult /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/make.log for more information.
Error! The directory /var/lib/dkms/binder_linux/1.0/source/
does not appear to have module source located within it.  Build halted.
ERROR (dkms apport): kernel package linux-headers-4.15.0-24-generic is not supported
Error! Bad return status for module build on kernel: 4.15.0-24-generic (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.60/build/make.log for more information.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.15.0-24-generic
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_14.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver8_7.bin for module i915
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/zorin/theme.txt
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-24-generic
Found initrd image: /boot/initrd.img-4.15.0-24-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
今天来到论坛,发现界面大变,我怀疑我来错地方了!
头像
lainme
论坛版主
帖子: 7805
注册时间: 2008-09-13 19:17
系统: Arch Linux (x86_64)
联系:

Re: 求问:更新软件源时,为何会忽略某些软件源?!还有,更新并安装最新的软件包出错!求解!

#2

帖子 lainme » 2018-07-03 18:39

http://mirror.ppa.trinitydesktop.org/tr ... ts/xenial/ 中并没有"InRelease",可能就是忽略的原因

至于出现错误,应该和anbox的安装有关,能不能先卸载anbox的内核模块,等更新重启后再重新安装?参考

https://github.com/anbox/anbox/issues/143
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 求问:更新软件源时,为何会忽略某些软件源?!还有,更新并安装最新的软件包出错!求解!

#3

帖子 poloshiao » 2018-07-03 20:19

更新软件源时,为何会忽略某些软件源?
1. https://askubuntu.com/questions/294525/ ... get-update
What does 'Ign' mean when running an apt-get update?
更新并安装最新的软件包出错!
2. 要看 錯誤訊息 才能提供建議
deii
帖子: 146
注册时间: 2018-04-24 20:06

Re: 求问:更新软件源时,为何会忽略某些软件源?!还有,更新并安装最新的软件包出错!求解!

#4

帖子 deii » 2018-07-03 20:29

不是后面有错误信息吗?
头像
astolia
论坛版主
帖子: 6386
注册时间: 2008-09-18 13:11

Re: 求问:更新软件源时,为何会忽略某些软件源?!还有,更新并安装最新的软件包出错!求解!

#5

帖子 astolia » 2018-07-04 17:33

deii 写了: 2018-07-03 20:29 不是后面有错误信息吗?
错误信息里一堆

代码: 全选

Error! The directory ***
does not appear to have module source located within it.  Build halted.
ERROR (dkms apport): kernel package linux-headers-4.15.0-24-generic is not supported
Error! Bad return status for module build on kernel: 4.15.0-24-generic (x86_64)
Consult *** for more information.
已经把原因说清楚了。看不懂的话去查字典
回复