首页 > 系统相关 >ubuntu install 下载安装包报错 subprocess installed post-installation script returned error exit status 10

ubuntu install 下载安装包报错 subprocess installed post-installation script returned error exit status 10

时间:2022-09-02 22:00:49浏览次数:103  
标签:status XXX 下载安装 sudo installed 报错 install error

前言

在 ubuntu 环境下使用 sudo apt-get install 安装软件包时,会报错

XXX 为安装软件包

dpkg:error processing package XXX (--configure):
subprocess installed post-installation script returned error exit status 10

报错原因,其实是权限问题

解决

# 如果已经出现这个错误,需要删除这些刚下载遗留的软件包,重新下载
sudo rm /var/lib/dpkg/info/XXX*

sudo dpkg --configure -D 777 XXX

# 修复安装包依赖关系
sudo apt-get  -f install

标签:status,XXX,下载安装,sudo,installed,报错,install,error
From: https://www.cnblogs.com/niuben/p/16651491.html

相关文章