晚上好。
我有 Kali Linux,并且已经使用了很长一段时间,但几天前我在尝试这样做时遇到了问题apt-get upgrade
,而问题恰恰与更新“espeakup”有关。
PS 我确信问题不在于 Kali,而是因为我对 Linux 的了解不够,但我们现在不讨论它:) 谢谢。
所以,当我尝试apt-get upgrade
这样做时,它会返回给我:
Setting up espeakup (1:0.80-5+b3) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Job for espeakup.service failed because the control process exited with error code.
See "systemctl status espeakup.service" and "journalctl -xe" for details.
invoke-rc.d: initscript espeakup, action "start" failed.
● espeakup.service - Software speech output for Speakup
Loaded: loaded (/lib/systemd/system/espeakup.service; disabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2017-08-13 17:47:05 EEST; 30ms ago
Docs: man:espeakup(8)
Process: 1634 ExecStart=/usr/bin/espeakup -V ${VOICE} (code=exited, status=2)
Aug 13 17:47:05 kali-Ansi17 systemd[1]: espeakup.service: Unit entered faile…te.
Aug 13 17:47:05 kali-Ansi17 systemd[1]: espeakup.service: Failed with result…e'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package espeakup (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
espeakup
E: Sub-process /usr/bin/dpkg returned an error code (1)
下一步
它说很少有行被省略,这就是我输入的原因systemctl -l status espeakup.service
,这就是我得到的:
● espeakup.service - Software speech output for Speakup
Loaded: loaded (/lib/systemd/system/espeakup.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2017-08-13 17:47:06 EEST; 11min ago
Docs: man:espeakup(8)
Process: 1682 ExecStart=/usr/bin/espeakup -V ${VOICE} (code=exited, status=2)
Aug 13 17:47:06 kali-Ansi17 systemd[1]: espeakup.service: Unit entered failed state.
Aug 13 17:47:06 kali-Ansi17 systemd[1]: espeakup.service: Failed with result 'exit-code'.
Aug 13 17:47:06 kali-Ansi17 systemd[1]: espeakup.service: Service hold-off time over, scheduling restart.
Aug 13 17:47:06 kali-Ansi17 systemd[1]: Stopped Software speech output for Speakup.
Aug 13 17:47:06 kali-Ansi17 systemd[1]: espeakup.service: Start request repeated too quickly.
Aug 13 17:47:06 kali-Ansi17 systemd[1]: Failed to start Software speech output for Speakup.
Aug 13 17:47:06 kali-Ansi17 systemd[1]: espeakup.service: Unit entered failed state.
Aug 13 17:47:06 kali-Ansi17 systemd[1]: espeakup.service: Failed with result 'exit-code'.
从字面上看,这就是我所拥有的。我尝试在网上寻找解决方案,但没有成功。而且,还有一个错误说:
E: Could not get lock /var/cache/apt/archives/lock – open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
我已经通过完成这些步骤解决了这个问题:ps -ef | grep apt-get
然后kill -9 processnumber
和ps -ef | grep dpkg
->相同kill -9 processnumber
。
顺便说一句,我从来没有遇到过“espeakup”,甚至不知道它代表什么。所以请帮助我,我厌倦了收到这个错误..
答案1
说话是英语和其他一些语言的软件语音合成器。
如果您认为不需要此软件包,请将其列入黑名单。它似乎正在扰乱你的apt-get upgrade
。
echo "espeak hold" | dpkg --set-selections
apt-get update && apt-get upgrade -y
答案2
该软件包espeakup
有错误,请参阅apt-listbugs espeakup
(debian 和 kali-linux)
来自 Debian Stretch:
#apt-listbugs list espeakup
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
grave bugs of espeakup (-> ) <Outstanding>
b1 - #913453 - espeakup fails install and ends in broken state (Fixed: espeakup/1:0.80-11)
grave bugs of espeakup (-> ) <Resolved in some Version>
b2 - #911120 - espeakup: Does not fully install (Fixed: 1:0.80-11)
Summary:
espeakup(2 bugs)
要解决问题编辑:
nano /lib/systemd/system/espeakup.service
改变 :
ExecStart=sh -c 'modprobe speakup_soft && /usr/bin/espeakup -V ${VOICE}'
到 :
ExecStart=/bin/sh -c 'modprobe speakup_soft && /usr/bin/espeakup -V ${VOICE}'
然后设置默认语音,/etc/default/espeakup
例如:
VOICE=fr
然后运行以下命令:
systemctl daemon-reload
systemctl start espeakup
检查状态:
systemctl status espeakup
请参阅 Debian Bug 报告日志 - #913453 日期:2018 年 11 月 11 日星期日 06:45:01 UTC