Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages

今天在玩客云CasaOS上安装alist的时候遇到了这个问题,当时使用apt-get install docker.io这个命令来安装docker,下面的报错信息。

Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages

Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages

The following packages have unmet dependencies:
libegl-mesa0 : Depends: libgbm1 (= 22.0.1-1ubuntu2.1) but 22.0.5-0ubuntu0.1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

在百度搜索以后,得到了新的命令aptitude,通过这个命令安装可以解决apt-get install出错,为什么会这样我也不清楚。
用sudo aptitude install <packagename>重新安装就解决了

apt-get install aptitude -y # 安装aptitude
sudo aptitude install -y build-essential libsdl2-dev

Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages:等您坐沙发呢!

发表评论

表情
还能输入210个字