You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

树莓派安装新软件时出现apt-listchanges错误求助

解决apt安装时apt-listchanges脚本报错问题

每次执行apt安装操作(比如sudo apt install arduino)都会触发以下错误:

E: Sub-process /usr/bin/apt-listchanges --apt || test $? -lt 10 returned an error code (1)
E: Failure running script /usr/bin/apt-listchanges --apt || test $? -lt 10

以下是几种可行的解决方法:

  • 临时绕过apt-listchanges
    直接修改apt运行参数,跳过这个脚本的执行:
    sudo apt install --option=Dpkg::Options::=--force-confdef --option=Dpkg::Options::=--force-confnew arduino
    或者临时禁用它的apt钩子配置:
    sudo mv /etc/apt/apt.conf.d/20listchanges /etc/apt/apt.conf.d/20listchanges.disabled
    之后再正常执行安装命令即可。

  • 重新配置apt-listchanges
    运行配置命令,根据向导调整通知设置(比如选择none关闭变更通知):
    sudo dpkg-reconfigure apt-listchanges

  • 重装apt-listchanges
    如果配置无效,彻底卸载后重装该工具:

    sudo apt remove --purge apt-listchanges
    sudo apt autoremove
    sudo apt install apt-listchanges
    

内容的提问来源于stack exchange,提问作者noogle

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.23 04:35:03