Debian
安裝 espeakup 軟體包後 apt-get upgrade “處理時遇到錯誤”
晚上好。
我有 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
thenkill -9 processnumber
和ps -ef | grep dpkg
->相同kill -9 processnumber
。順便說一句,我從來沒有遇到過“espeakup”,甚至不知道它代表什麼。所以請幫幫我,我厭倦了收到這個錯誤..
espeak是一款適用於英語和其他一些語言的語音合成軟體。
如果您認為不需要此軟體包,請將其列入黑名單。它似乎正在擾亂您的
apt-get upgrade
.echo "espeak hold" | dpkg --set-selections apt-get update && apt-get upgrade -y
該軟體包
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 錯誤報告日誌 - #913453 日期:2018 年 11 月 11 日星期日 06:45:01 UTC