Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi'

运行sudo apt-get update 时Ubuntu 16.04出现:

Problem executing scripts APT::Update::Post-Invoke-Success ‘if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi‘

解决方法:

依次执行

sudo pkill -KILL appstreamcli

wget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb

sudo dpkg -i /tmp/appstream_0.9.4-1ubuntu1_amd64.deb /tmp/libappstream3_0.9.4-1ubuntu1_amd64.deb

Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi'

原文地址:https://www.cnblogs.com/Stone-Blossom/p/8626383.html

时间: 2024-10-29 15:48:39

Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi'的相关文章

Ubuntu 16.04出现:Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi'

错误: Reading package lists... Done E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi' E: Sub-process returned an error code 在运行

Ubuntu用sudo apt-get update出错:E: Problem executing scripts APT::Update::Post-Invoke-Success

Ubuntu用sudo apt-get update出错: E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi'   E: Sub-process returned an error code 解决方法:

Problem executing scripts APT::Update::Post-Invoke-Success

以为公司的网有问题.一直不能update.但centos yum update正常.今天网上搜索到类似的 貌似成功了 https://blog.csdn.net/zzq123686/article/details/77454066 原文地址:https://www.cnblogs.com/uxiuxi/p/10122596.html

./scripts/feeds update -a

./scripts/feeds update -a Updating feed 'packages' from 'https://github.com/openwrt/packages.git' ... Initialized empty Git repository in /home/openwrt/trunk/feeds/packages/.git/ remote: Counting objects: 3771, done. remote: Compressing objects: 100%

sudo apt update出错 ,

文章来源:https://www.wandouip.com/t5i364432/ 为了处理最近一起安全事件,旧密钥已被撤销.所以在执行apt-get update 时会提示密钥错误,更换密钥即可.新的密钥和旧的密钥如下: old key: 421C365BD9FF1F717815A3895523BAEEB01FA116 new key: C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 解决方法 首先要删除旧的密钥: 16.04以后的版本: sudo apt-ke

Ubuntu遇到apt-get update报错:"E: Could not get lock /var/lib/apt/lists/lock"

sudo apt-get update报错:"E: Could not get lock /var/lib/apt/lists/lock" 出现此问题的原因可能是有另外一个程序在运行,导致资源被加锁,不可用.导致资源被锁的原因可能是上次更新源的操作没有完成! 从上图可以看出,报错的内容是不能获取那个路径下的 lock,咱们就应该删除哪个lock. 删除之后再执行 sudo apt-get update 操作,成功! 原文地址:https://www.cnblogs.com/skzxc/

dpkg: 处理归档 /var/cache/apt/archives/软件名 (--unpack)时出错:由于已经达到 MaxReports 限制,没有写入 apport 报告。

一.环境介绍: OS:ubuntu16.04 64bit 二.错误如下: 正准备解包 .../libqt4-script_4%3a4.8.7+dfsg-5ubuntu2_i386.deb  ...正在将 libqt4-script:i386 (4:4.8.7+dfsg-5ubuntu2) 解包到 (4:4.8.1-0ubuntu4.5) 上 ...dpkg: 处理归档 /var/cache/apt/archives/libqt4-script_4%3a4.8.7+dfsg-5ubuntu2_i3

sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock

原因:历史软件(包)更新(安装)未完成就退出了系统 解决办法:杀死该进程 sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock 为防止类似情况发生,可以执行以下命令 sudo dpkg --configure -a sudo apt-get update 即使运行sudo dpkg --configure -a也不能解决问题,那就将错误的更新包删除并尝试重新更新 sudo rm /var/lib/dpkg/updates/

Ubuntu “无法获得锁”解决方案(E: 无法获得锁 /var/cache/apt/archive

Ubuntu “无法获得锁”解决方案(E: 无法获得锁 /var/cache/apt/archive 现象一: E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源临时不可用) E: 无法对管理目录(/var/lib/dpkg/)加锁,是不是另一个包管理程序在使用它? 无法执行其他apt-get命令 解决办法: 第一种(比较暴力) 把lock的文件强行删掉,解决问题: sudo rm /var/lib/dpkg/lock 或 sudo rm /var/lib/ap