[Touch-packages] [Bug 1502438] Re: package avahi-daemon 0.6.31-4ubuntu4 failed to install/upgrade: 子进程 已安装 pre-removal 脚本 返回错误状态 1

2015-10-03 Thread
I try uninstall it harder, and I fond something odd:

(I reinstalled avahi-daemon and rebooted )
(After I rebooted my pc successfully, I did "sudo systemctl stop 
avahi-daemon.service avahi-daemon.socket"), and then

chen@MSI-Ubuntu:~$ sudo apt-get purge avahi-daemon  
正在读取软件包列表... 完成
正在分析软件包的依赖关系树   
正在读取状态信息... 完成   
下列软件包将被【卸载】:
  avahi-daemon* libnss-mdns*
升级了 0 个软件包,新安装了 0 个软件包,要卸载 2 个软件包,有 0 个软件包未被升级。
解压缩后将会空出 501 kB 的空间。
您希望继续执行吗? [Y/n] y
(正在读取数据库 ... 系统当前共安装有 339528 个文件和目录。)
正在卸载 libnss-mdns:amd64 (0.10-6) ...
libnss-mdns.postrm: Checking NSS setup...
libnss-mdns.postrm: Removing mdns from NSS setup
正在清除 libnss-mdns:amd64 (0.10-6) 的配置文件 ...
正在卸载 avahi-daemon (0.6.31-4ubuntu4) ...
Warning: Stopping avahi-daemon.service, but it can still be activated by:
  avahi-daemon.socket
正在清除 avahi-daemon (0.6.31-4ubuntu4) 的配置文件 ...
userdel: user avahi is currently used by process 3300
/usr/sbin/deluser:"/usr/sbin/userdel avahi"返回错误代码 8,退出。
/usr/sbin/delgroup: "avahi"仍以"avahi"作为他们的首选组!
rmdir: 删除 "/var/run/avahi-daemon" 失败: 目录非空
正在处理用于 libc-bin (2.21-0ubuntu4) 的触发器 ...
正在处理用于 dbus (1.8.12-1ubuntu5) 的触发器 ...
正在处理用于 man-db (2.7.0.2-5) 的触发器 ...
chen@MSI-Ubuntu:~$ cat /var/run/avahi-daemon/
cat: /var/run/avahi-daemon/: 权限不够
chen@MSI-Ubuntu:~$ sudo cat /var/run/avahi-daemon/*
cat: /var/run/avahi-daemon/*: 没有那个文件或目录
chen@MSI-Ubuntu:~$ cd /var/run
chen@MSI-Ubuntu:/var/run$ cd avahi-daemon/
bash: cd: avahi-daemon/: 权限不够
chen@MSI-Ubuntu:/var/run$ sudo su
root@MSI-Ubuntu:/run# cd avahi-daemon/
root@MSI-Ubuntu:/run/avahi-daemon# ls
pid  socket
root@MSI-Ubuntu:/run/avahi-daemon# cat pid 
3299
root@MSI-Ubuntu:/run/avahi-daemon# 


The pid file on /run/avahi-daemon value is 3299 ,

and


root@MSI-Ubuntu:/run/avahi-daemon# ps -aux | grep avahi
avahi 3299  0.0  0.0  30312  3164 ?Ss   21:26   0:00 avahi-daemon: 
running [MSI-Ubuntu.local]
avahi 3300  0.0  0.0  30188   240 ?S21:26   0:00 avahi-daemon: 
chroot helper
root  4340  0.0  0.0  11192  2336 pts/0S+   21:35   0:00 grep 
--color=auto avahi


So I may think the command "sudo systemctl stop avahi-daemon.service 
avahi-daemon.socket" not work.
Because It not kill the avahi-daemon process, So I can't remove the package 
avahi-daemon.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to avahi in Ubuntu.
https://bugs.launchpad.net/bugs/1502438

Title:
  package avahi-daemon 0.6.31-4ubuntu4 failed to install/upgrade: 子进程
  已安装 pre-removal 脚本 返回错误状态 1

Status in avahi package in Ubuntu:
  New

Bug description:
  正在卸载 avahi-daemon (0.6.31-4ubuntu4) ...
  Job for avahi-daemon.service canceled.
  invoke-rc.d: initscript avahi-daemon, action "stop" failed.
  dpkg: 处理软件包 avahi-daemon (--purge)时出错:
   子进程 已安装 pre-removal 脚本 返回错误状态 1
  update-rc.d: warning: start and stop actions are no longer supported; falling 
back to defaults
  在处理时有错误发生:
   avahi-daemon
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  ProblemType: Package
  DistroRelease: Ubuntu 15.04
  Package: avahi-daemon 0.6.31-4ubuntu4
  ProcVersionSignature: Ubuntu 3.19.0-28.30-generic 3.19.8-ckt5
  Uname: Linux 3.19.0-28-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1.5
  Architecture: amd64
  Date: Sat Oct  3 21:12:04 2015
  DuplicateSignature: package:avahi-daemon:0.6.31-4ubuntu4:子进程 已安装 pre-removal 
脚本 返回错误状态 1
  ErrorMessage: 子进程 已安装 pre-removal 脚本 返回错误状态 1
  InstallationDate: Installed on 2014-12-18 (288 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
  RelatedPackageVersions:
   dpkg 1.17.25ubuntu1
   apt  1.0.9.7ubuntu4.1
  SourcePackage: avahi
  Title: package avahi-daemon 0.6.31-4ubuntu4 failed to install/upgrade: 子进程 
已安装 pre-removal 脚本 返回错误状态 1
  UpgradeStatus: Upgraded to vivid on 2015-04-29 (157 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1502438/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1502438] Re: package avahi-daemon 0.6.31-4ubuntu4 failed to install/upgrade: 子进程 已安装 pre-removal 脚本 返回错误状态 1

2015-10-03 Thread
I ran:

 2023  sudo systemctl disable avahi-daemon.socket avahi-daemon.service 
 2024  sudo systemctl stop avahi-daemon.socket avahi-daemon.service 
 2025  sudo ps -aux | head
 2026  sudo ps -aux | grep avahi
 2027  sudo apt-get purge avahi-daemon 
 2028  sudo rm /var/run/avahi-daemon/ -rf

chen@MSI-Ubuntu:/var/run$ sudo apt-get purge avahi-daemon 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树   
正在读取状态信息... 完成   
下列软件包将被【卸载】:
  avahi-daemon* libnss-mdns*
升级了 0 个软件包,新安装了 0 个软件包,要卸载 2 个软件包,有 0 个软件包未被升级。
解压缩后将会空出 501 kB 的空间。
您希望继续执行吗? [Y/n] y
(正在读取数据库 ... 系统当前共安装有 339528 个文件和目录。)
正在卸载 libnss-mdns:amd64 (0.10-6) ...
libnss-mdns.postrm: Checking NSS setup...
libnss-mdns.postrm: Removing mdns from NSS setup
正在清除 libnss-mdns:amd64 (0.10-6) 的配置文件 ...
正在卸载 avahi-daemon (0.6.31-4ubuntu4) ...
正在清除 avahi-daemon (0.6.31-4ubuntu4) 的配置文件 ...
rmdir: 删除 "/var/run/avahi-daemon" 失败: 目录非空
正在处理用于 libc-bin (2.21-0ubuntu4) 的触发器 ...
正在处理用于 dbus (1.8.12-1ubuntu5) 的触发器 ...
正在处理用于 man-db (2.7.0.2-5) 的触发器 ...
chen@MSI-Ubuntu:/var/run$ sudo rm /var/run/avahi-daemon/ -rf


I think I removed it successfully.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to avahi in Ubuntu.
https://bugs.launchpad.net/bugs/1502438

Title:
  package avahi-daemon 0.6.31-4ubuntu4 failed to install/upgrade: 子进程
  已安装 pre-removal 脚本 返回错误状态 1

Status in avahi package in Ubuntu:
  New

Bug description:
  正在卸载 avahi-daemon (0.6.31-4ubuntu4) ...
  Job for avahi-daemon.service canceled.
  invoke-rc.d: initscript avahi-daemon, action "stop" failed.
  dpkg: 处理软件包 avahi-daemon (--purge)时出错:
   子进程 已安装 pre-removal 脚本 返回错误状态 1
  update-rc.d: warning: start and stop actions are no longer supported; falling 
back to defaults
  在处理时有错误发生:
   avahi-daemon
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  ProblemType: Package
  DistroRelease: Ubuntu 15.04
  Package: avahi-daemon 0.6.31-4ubuntu4
  ProcVersionSignature: Ubuntu 3.19.0-28.30-generic 3.19.8-ckt5
  Uname: Linux 3.19.0-28-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1.5
  Architecture: amd64
  Date: Sat Oct  3 21:12:04 2015
  DuplicateSignature: package:avahi-daemon:0.6.31-4ubuntu4:子进程 已安装 pre-removal 
脚本 返回错误状态 1
  ErrorMessage: 子进程 已安装 pre-removal 脚本 返回错误状态 1
  InstallationDate: Installed on 2014-12-18 (288 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
  RelatedPackageVersions:
   dpkg 1.17.25ubuntu1
   apt  1.0.9.7ubuntu4.1
  SourcePackage: avahi
  Title: package avahi-daemon 0.6.31-4ubuntu4 failed to install/upgrade: 子进程 
已安装 pre-removal 脚本 返回错误状态 1
  UpgradeStatus: Upgraded to vivid on 2015-04-29 (157 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1502438/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1502438] [NEW] package avahi-daemon 0.6.31-4ubuntu4 failed to install/upgrade: 子进程 已安装 pre-removal 脚本 返回错误状态 1

2015-10-03 Thread
Public bug reported:

正在卸载 avahi-daemon (0.6.31-4ubuntu4) ...
Job for avahi-daemon.service canceled.
invoke-rc.d: initscript avahi-daemon, action "stop" failed.
dpkg: 处理软件包 avahi-daemon (--purge)时出错:
 子进程 已安装 pre-removal 脚本 返回错误状态 1
update-rc.d: warning: start and stop actions are no longer supported; falling 
back to defaults
在处理时有错误发生:
 avahi-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 15.04
Package: avahi-daemon 0.6.31-4ubuntu4
ProcVersionSignature: Ubuntu 3.19.0-28.30-generic 3.19.8-ckt5
Uname: Linux 3.19.0-28-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.5
Architecture: amd64
Date: Sat Oct  3 21:12:04 2015
DuplicateSignature: package:avahi-daemon:0.6.31-4ubuntu4:子进程 已安装 pre-removal 脚本 
返回错误状态 1
ErrorMessage: 子进程 已安装 pre-removal 脚本 返回错误状态 1
InstallationDate: Installed on 2014-12-18 (288 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
RelatedPackageVersions:
 dpkg 1.17.25ubuntu1
 apt  1.0.9.7ubuntu4.1
SourcePackage: avahi
Title: package avahi-daemon 0.6.31-4ubuntu4 failed to install/upgrade: 子进程 已安装 
pre-removal 脚本 返回错误状态 1
UpgradeStatus: Upgraded to vivid on 2015-04-29 (157 days ago)

** Affects: avahi (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-package vivid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to avahi in Ubuntu.
https://bugs.launchpad.net/bugs/1502438

Title:
  package avahi-daemon 0.6.31-4ubuntu4 failed to install/upgrade: 子进程
  已安装 pre-removal 脚本 返回错误状态 1

Status in avahi package in Ubuntu:
  New

Bug description:
  正在卸载 avahi-daemon (0.6.31-4ubuntu4) ...
  Job for avahi-daemon.service canceled.
  invoke-rc.d: initscript avahi-daemon, action "stop" failed.
  dpkg: 处理软件包 avahi-daemon (--purge)时出错:
   子进程 已安装 pre-removal 脚本 返回错误状态 1
  update-rc.d: warning: start and stop actions are no longer supported; falling 
back to defaults
  在处理时有错误发生:
   avahi-daemon
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  ProblemType: Package
  DistroRelease: Ubuntu 15.04
  Package: avahi-daemon 0.6.31-4ubuntu4
  ProcVersionSignature: Ubuntu 3.19.0-28.30-generic 3.19.8-ckt5
  Uname: Linux 3.19.0-28-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1.5
  Architecture: amd64
  Date: Sat Oct  3 21:12:04 2015
  DuplicateSignature: package:avahi-daemon:0.6.31-4ubuntu4:子进程 已安装 pre-removal 
脚本 返回错误状态 1
  ErrorMessage: 子进程 已安装 pre-removal 脚本 返回错误状态 1
  InstallationDate: Installed on 2014-12-18 (288 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
  RelatedPackageVersions:
   dpkg 1.17.25ubuntu1
   apt  1.0.9.7ubuntu4.1
  SourcePackage: avahi
  Title: package avahi-daemon 0.6.31-4ubuntu4 failed to install/upgrade: 子进程 
已安装 pre-removal 脚本 返回错误状态 1
  UpgradeStatus: Upgraded to vivid on 2015-04-29 (157 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1502438/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1448623] Re: package click 0.4.38.5 failed to install/upgrade: 子进程 新的 pre-removal 脚本 返回错误状态 1

2015-07-07 Thread
https://bugs.launchpad.net/ubuntu/+source/click/+bug/1386354

sudo pip3 uninstall click
sudo apt-get purge click

Now It's ok.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to click in Ubuntu.
https://bugs.launchpad.net/bugs/1448623

Title:
  package click 0.4.38.5 failed to install/upgrade: 子进程 新的 pre-removal
  脚本 返回错误状态 1

Status in click package in Ubuntu:
  Confirmed

Bug description:
  The package cannot be installed.

  ProblemType: Package
  DistroRelease: Ubuntu 15.04
  Package: click 0.4.38.5
  ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7
  Uname: Linux 3.16.0-25-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.17.2-0ubuntu1
  Architecture: amd64
  Date: Sun Apr 26 14:39:56 2015
  DpkgHistoryLog:
   Start-Date: 2015-04-26  14:39:55
   Commandline: apt-get -f dist-upgrade
   Upgrade: click:amd64 (0.4.33, 0.4.38.5), click-apparmor:amd64 (0.2.11.2, 
0.3.8), ubuntu-app-launch:amd64 (0.4+14.10.20141006-0ubuntu1, 
0.4+15.04.20150410-0ubuntu1)
  DuplicateSignature: package:click:0.4.38.5:子进程 新的 pre-removal 脚本 返回错误状态 1
  ErrorMessage: 子进程 新的 pre-removal 脚本 返回错误状态 1
  RelatedPackageVersions:
   dpkg 1.17.25ubuntu1
   apt  1.0.9.7ubuntu4
  SourcePackage: click
  Title: package click 0.4.38.5 failed to install/upgrade: 子进程 新的 pre-removal 
脚本 返回错误状态 1
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/click/+bug/1448623/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1448623] Re: package click 0.4.38.5 failed to install/upgrade: 子进程 新的 pre-removal 脚本 返回错误状态 1

2015-07-06 Thread
I don't know if my problem is caused by this bug.

Here are my summary:

$ sudo apt-get purge click
[sudo] password for chen: 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树   
正在读取状态信息... 完成   
下列软件包将被【卸载】:
  click*
升级了 0 个软件包,新安装了 0 个软件包,要卸载 1 个软件包,有 0 个软件包未被升级。
解压缩后将会空出 166 kB 的空间。
您希望继续执行吗? [Y/n] y
(正在读取数据库 ... 系统当前共安装有 313386 个文件和目录。)
正在卸载 click (0.4.38.5) ...
Traceback (most recent call last):
  File /usr/bin/click, line 31, in module
from click import commands
ImportError: cannot import name 'commands'
dpkg: 处理软件包 click (--purge)时出错:
 子进程 已安装 pre-removal 脚本 返回错误状态 1
Job for click-system-hooks.service failed. See systemctl status 
click-system-hooks.service and journalctl -xe for details.
click-system-hooks.service couldn't start.
在处理时有错误发生:
 click
E: Sub-process /usr/bin/dpkg returned an error code (1)
chen@Chen-Server:~$ systemctl status click-system-hooks.service
● click-system-hooks.service - Run Click system-level hooks
   Loaded: loaded (/lib/systemd/system/click-system-hooks.service; enabled; 
vendor preset: enabled)
   Active: failed (Result: exit-code) since 一 2015-07-06 18:21:06 CST; 10s ago
 Docs: man:click(1)
  Process: 4032 ExecStart=/usr/bin/click hook run-system (code=exited, 
status=1/FAILURE)
 Main PID: 4032 (code=exited, status=1/FAILURE)

 7月 06 18:21:06 Chen-Server systemd[1]: Starting Run Click system-level hooks...
 7月 06 18:21:06 Chen-Server click[4032]: Traceback (most recent call last):
 7月 06 18:21:06 Chen-Server click[4032]: File /usr/bin/click, line 31, in 
module
 7月 06 18:21:06 Chen-Server click[4032]: from click import commands
 7月 06 18:21:06 Chen-Server click[4032]: ImportError: cannot import name 
'commands'
 7月 06 18:21:06 Chen-Server systemd[1]: click-system-hooks.service: main 
process exited, code=exited, status=1/FAILURE
 7月 06 18:21:06 Chen-Server systemd[1]: Failed to start Run Click system-level 
hooks.
 7月 06 18:21:06 Chen-Server systemd[1]: Unit click-system-hooks.service entered 
failed state.
 7月 06 18:21:06 Chen-Server systemd[1]: click-system-hooks.service failed.
$

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to click in Ubuntu.
https://bugs.launchpad.net/bugs/1448623

Title:
  package click 0.4.38.5 failed to install/upgrade: 子进程 新的 pre-removal
  脚本 返回错误状态 1

Status in click package in Ubuntu:
  Confirmed

Bug description:
  The package cannot be installed.

  ProblemType: Package
  DistroRelease: Ubuntu 15.04
  Package: click 0.4.38.5
  ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7
  Uname: Linux 3.16.0-25-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.17.2-0ubuntu1
  Architecture: amd64
  Date: Sun Apr 26 14:39:56 2015
  DpkgHistoryLog:
   Start-Date: 2015-04-26  14:39:55
   Commandline: apt-get -f dist-upgrade
   Upgrade: click:amd64 (0.4.33, 0.4.38.5), click-apparmor:amd64 (0.2.11.2, 
0.3.8), ubuntu-app-launch:amd64 (0.4+14.10.20141006-0ubuntu1, 
0.4+15.04.20150410-0ubuntu1)
  DuplicateSignature: package:click:0.4.38.5:子进程 新的 pre-removal 脚本 返回错误状态 1
  ErrorMessage: 子进程 新的 pre-removal 脚本 返回错误状态 1
  RelatedPackageVersions:
   dpkg 1.17.25ubuntu1
   apt  1.0.9.7ubuntu4
  SourcePackage: click
  Title: package click 0.4.38.5 failed to install/upgrade: 子进程 新的 pre-removal 
脚本 返回错误状态 1
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/click/+bug/1448623/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp