我正在使用Ubuntu 16.04.5LTS和官方Ubuntu存储库中的所有当前更新和HPLIP:
$ dpkg -l | grep hplip
ii hplip 3.16.3+repack0-1 amd64 HP Linux Printing and Imaging System (HPLIP)
ii hplip-data 3.16.3+repack0-1 all HP Linux Printing and Imaging - data files
ii hplip-gui 3.16.3+repack0-1 all HP Linux Printing and Imaging - GUI utilities (Qt-based)
$ apt-cache policy hplip-gui
hplip-gui:
Installed: 3.16.3+repack0-1
Candidate: 3.16.3+repack0-1
Version table:
*** 3.16.3+repack0-1 500
500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
500 http://archive.ubuntu.com/ubuntu xenial/universe i386 Packages
100 /var/lib/dpkg/status如果我试图找到它的XDG文件,我会得到:
$ dpkg -L hplip-gui | grep "xdg.*desktop"
/etc/xdg/autostart/hplip-systray.desktop它以命令开头:
$ cat /etc/xdg/autostart/hplip-systray.desktop | grep Exec
Exec=hp-systray -x如果我手动启动它,我会得到:
$ hp-systray -x
HP Linux Imaging and Printing System (ver. 3.16.3)
System Tray Status Service ver. 2.0
Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Segmentation fault (core dumped)系统的完整性是好的-我没有从debsums --all --changed得到任何错误输出。
问题--为什么HPLIP系统会崩溃,我应该怎么做才能让它再次工作?
发布于 2018-11-07 21:10:19
首先,我们需要确定hp-systray的文件类型:
$ which hp-systray
/usr/bin/hp-systray
$ file $(which hp-systray)
/usr/bin/hp-systray: symbolic link to ../share/hplip/systray.py
$ file $(readlink -f $(which hp-systray))
/usr/share/hplip/systray.py: Python script, ASCII text executable- so是。
然后,通过在/var/crash/_usr_share_hplip_systray.py.1000.crash读取崩溃转储,我们可以确定以下内容。crashdump包含对pip3安装的python模块的引用:
...
ProcMaps:
...
... /usr/local/lib/python3.5/dist-packages/sip.so
... /usr/local/lib/python3.5/dist-packages/sip.so
... /usr/local/lib/python3.5/dist-packages/sip.so
... /usr/local/lib/python3.5/dist-packages/sip.so因此,我们需要删除有问题的sip模块
sudo pip3 uninstall sip它解决了HPLIP问题,因为它将使用来自python3-sip包的sip。
但是,删除sip也会破坏安装在pip3上的ReText。为了解决这个问题,我们需要:
hplip上描述的deb/APT版本的其他答案,然后安装ReText with: sudo -H pip3 install PyQt5==5.9.2 retext备注: PyQt 5.9.2是铬(WebKit)渲染器的正常操作和与Spyder3共存所必需的。https://askubuntu.com/questions/1090943
复制相似问题