赞
踩
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.
今天在ubuntu22.04上安装SDL2的时候遇到了这个问题
在网上搜索,得到了新的命令aptitude
用sudo aptitude install <packagename>
重新安装就解决了
apt-get install aptitude -y # 安装aptitude
sudo aptitude install -y build-essential libsdl2-dev
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。