系统更新出现错误
Tofloor
poster avatar
guiyangyong
deepin
2016-08-10 06:21
Author
系统更新,出现错误,请问这是什么情况?
下面是部分更新记录,完整的记录见附件。
.....
正在处理用于 desktop-file-utils (0.22-1) 的触发器 ...
正在设置 libgtk-3-bin (3.20.6-2) ...
正在设置 liblvm2cmd2.02:amd64 (2.02.153-1) ...
正在设置 dmeventd (2:1.02.124-1) ...
正在设置 lvm2 (2.02.153-1) ...
正在安装新版本配置文件 /etc/lvm/lvm.conf ...
update-initramfs: deferring update (trigger activated)
dpkg: 处理触发器时发现回路:
包含或可能包含对此有责任的触发器的软件包链:
  bamfdaemon -> bamfdaemon
无法解决的软件包未决触发器:
  dbus: /etc/dbus-1/system.d: /usr/share/dbus-1/system-services
  systemd: /etc/init.d
  libc-bin: ldconfig
  bamfdaemon: /usr/share/applications
  initramfs-tools: update-initramfs
  libgdk-pixbuf2.0-0:amd64: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders
dpkg: 处理软件包 dbus (--configure)时出错:
触发器循环,放弃
正在处理用于 initramfs-tools (0.125) 的触发器 ...
update-initramfs: Generating /boot/initrd.img-4.4.0-2-deepin-amd64
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mdadm: no arrays defined in configuration file.
正在设置 btrfs-tools (4.5.2-1) ...
dpkg: 处理触发器时发现回路:
包含或可能包含对此有责任的触发器的软件包链:
  bamfdaemon -> bamfdaemon
无法解决的软件包未决触发器:
  systemd: /etc/init.d
  libc-bin: ldconfig
  bamfdaemon: /usr/share/applications
  libgdk-pixbuf2.0-0:amd64: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders
dpkg: 处理软件包 systemd (--configure)时出错:
触发器循环,放弃
dpkg: 处理触发器时发现回路:
包含或可能包含对此有责任的触发器的软件包链:
  bamfdaemon -> bamfdaemon -> bamfdaemon
无法解决的软件包未决触发器:
  libc-bin: ldconfig
  bamfdaemon: /usr/share/applications
  libgdk-pixbuf2.0-0:amd64: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders
dpkg: 处理软件包 libc-bin (--configure)时出错:
触发器循环,放弃
dpkg: 处理触发器时发现回路:
包含或可能包含对此有责任的触发器的软件包链:
  bamfdaemon -> bamfdaemon -> bamfdaemon -> bamfdaemon -> bamfdaemon -> bamfdaemon
无法解决的软件包未决触发器:
  bamfdaemon: /usr/share/applications
  libgdk-pixbuf2.0-0:amd64: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders
dpkg: 处理软件包 bamfdaemon (--configure)时出错:
触发器循环,放弃
正在设置 printer-driver-foo2zjs (20160313dfsg0-1) ...
正在设置 sogoupinyin (2.0.0.0078) ...
正在设置 dde (15.3+3) ...
dpkg: 依赖关系问题使得 dde-daemon 的配置工作不能继续:
dde-daemon 依赖于 bamfdaemon;然而:
  软件包 bamfdaemon 尚未配置。

dpkg: 处理软件包 dde-daemon (--configure)时出错:
依赖关系问题 - 仍未被配置
正在设置 apps.com.qq.im:i386 (8.1.17255deepin11) ...
正在处理用于 libgdk-pixbuf2.0-0:amd64 (2.34.0-1) 的触发器 ...
... ...
正在设置 system-config-printer-common (1.5.7-2) ...
正在设置 system-config-printer (1.5.7-2) ...
正在设置 quadrapassel (1:3.20.0-1) ...
正在设置 simple-scan (3.20.0-1) ...
正在设置 bamfdaemon (0.2.118-1+b1) ...
Rebuilding /usr/share/applications/bamf.index...
在处理时有错误发生:
dbus
systemd
libc-bin
bamfdaemon
dde-daemon
Incorrect Usage.

NAME:[ 99%] [##################################################################]
   lastore-tools - help building dstore system.

USAGE:
   lastore-tools [global options] command [command options] [arguments...]
   
VERSION:
   0.9.18
   
COMMANDS:
   update    Update appstore information from server
   test        Use lastore-daemon to run jobs
    search will search apps from dstore. It will list all apps
    if there hasn't any input.

    install/remove will execute the command with the input
    package name.

    upgrade will first update source and then upgrade packages
    if there has any one.

   smartmirror    query of select mirrors
   help, h    Shows a list of commands or help for one command
   
GLOBAL OPTIONS:
   --debug, -d                    show verbose message
   --dstoreapi "http://api.appstore.deepin.org"    the dstore api server url. There has many jobs would use the to fetch data
   --help, -h                    show help
   --version, -v                print the version
   
flag provided but not defined: -item
E: Sub-process /usr/bin/dpkg returned an error code (1)
xx@xx-pc:~$


请问这个是什么情况?

Reply Favorite View the author
All Replies
avatar
Island
deepin
2016-08-10 16:58
#1
sudo dpkg --configure -a  或者 sudo apt-get -f install   
Reply View the author
avatar
longxiang
deepin
2016-08-10 19:11
#2
sudo apt-get update && sudo apt-get dist-upgrade
看看什么错误
Reply View the author
avatar
super-9du
deepin
2016-08-10 19:19
#3
我使用系统更新,怎么一到49%就更新不了了
Reply View the author
avatar
gzdxyy
deepin
2016-08-11 05:09
#4
zhangshuang 发表于 2016-8-10 08:58
sudo dpkg --configure -a  或者 sudo apt-get -f install   

好的,我试试
Reply View the author
avatar
gzdxyy
deepin
2016-08-11 05:10
#5
super-9du 发表于 2016-8-10 11:19
我使用系统更新,怎么一到49%就更新不了了

我是在终端更新的,我是一个有点强迫症的人,在控制中心更新没有在终端更新直观
Reply View the author
avatar
gzdxyy
deepin
2016-08-11 05:13
#6
longxiang 发表于 2016-8-10 11:11
sudo apt-get update && sudo apt-get dist-upgrade
看看什么错误

我用了sudo apt dist-upgrade没出现什么错误,今天还没开机,不知道对系统有没影响
Reply View the author
avatar
guiyangyong
deepin
2016-08-12 04:19
#7
https://bbs.deepin.org/post/42263
我用了sudo apt dist-upgrade没出现什么错误,今天还没开机,不知道对系统有没影响 ...

正常开机,没有什么异常显示
Reply View the author
avatar
guiyangyong
deepin
2016-08-12 04:20
#8
https://bbs.deepin.org/post/42263
sudo dpkg --configure -a  或者 sudo apt-get -f install   

一切正常
Reply View the author
avatar
super-9du
deepin
2016-08-12 04:23
#9
https://bbs.deepin.org/post/42263
sudo dpkg --configure -a  或者 sudo apt-get -f install   

super-9du@super-9du-pc:~$ sudo dpkg --configure -a
super-9du@super-9du-pc:~$ sudo dpkg --configure -a
super-9du@super-9du-pc:~$ sudo apt-get -f install
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 28 个软件包未被升级。

怎么回事啊?
Reply View the author
avatar
super-9du
deepin
2016-08-12 04:26
#10
https://bbs.deepin.org/post/42263
sudo apt-get update && sudo apt-get dist-upgrade
看看什么错误

super-9du@super-9du-pc:~$ sudo apt-get update && sudo apt-get dist-upgrade
命中:1 http://packages.deepin.com/deepin unstable InRelease
正在读取软件包列表... 完成   
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
正在对升级进行计算... 完成
下列软件包将被【卸载】:
  thunderbird thunderbird-locale-zh-hans
下列【新】软件包将被安装:
  hunspell-en-us libgspell-1-1 libhunspell-1.4-0 libnatspec0
下列软件包的版本将保持不变:
  tesseract-ocr
下列软件包将被升级:
  android-udev-rules apps.com.qq.im:i386 crossover-15:i386
  deepin-appstore deepin-appstore-data eog firefox firefox-dde gedit
  gedit-common gnome-font-viewer gnome-system-monitor im-config
  ipad-charge lastore-daemon libflashplugin libfreetype6
  libfreetype6:i386 liblightdm-gobject-1-0 liblightdm-qt5-3-0 lightdm
  python-ass sogoupinyin teamviewer unzip wps-office xmind
升级了 27 个软件包,新安装了 4 个软件包,要卸载 2 个软件包,有 1 个软件包未被升级。
需要下载 18.7 MB/498 MB 的软件包。
解压缩后将会空出 4,646 kB 的空间。
您希望继续执行吗? [Y/n] y
获取:1 http://packages.deepin.com/deepin unstable/non-free amd64 sogoupinyin amd64 2.0.0.0078 [18.7 MB]
错误:1 http://packages.deepin.com/deepin unstable/non-free amd64 sogoupinyin amd64 2.0.0.0078
  Hash 校验和不符
下载 18.7 MB,耗时 14秒 (1,324 kB/s)                                   
E: 无法下载 http://111.63.135.21/files/123200002812CA10/archive.ubuntukylin.com:10006/ubuntukylin/pool/main/s/sogoupinyin/sogoupinyin_2.0.0.0078_amd64.deb  Hash 校验和不符

E: 有几个软件包无法下载,您可以运行 apt-get update 或者加上 --fix-missing 的选项再试试?

我使用论坛里的
  1. sudo rm /var/lib/apt/lists/partial/*
Copy the Code
出现以下的文字:
super-9du@super-9du-pc:~$ sudo rm /var/lib/apt/lists/partial/*
rm: 无法删除'/var/lib/apt/lists/partial/*': 没有那个文件或目录
Reply View the author
avatar
jingle
deepin
2016-08-12 17:13
#11
https://bbs.deepin.org/post/42263
super-9du@super-9du-pc:~$ sudo apt-get update && sudo apt-get dist-upgrade
命中:1 http://packages. ...

删除 /etc/apt/sources.list.d 下文件 在试试。
Reply View the author