我试图在 lubuntu 上安装 libglu1-mesa-dev freeglut3-dev 和 mesa-common-dev,因为在线课程需要 opengl 来运行练习代码,最初由于 som 依赖性而引发错误,但我结束了拿着损坏的包,因为我不知道如何解决它我用谷歌搜索了它,发现有人说要这样做:
1 sudo apt-get --fix-broken install
2 sudo rm /var/lib/apt/lists/* -vf
3 sudo aptitude 安全升级
但是我仍然持有损坏的软件包,但无法清除它们,因为它说它们没有安装,我不知道这是否是因为我删除了文件(我犯了一个错误:我没有先做备份 /var/lib/apt/lists 上的文件,也不要先搜索另一种解决方案)或者我之前可以清除它,我尝试使用 testdisk 恢复文件,但选项“取消删除”没有出现。我还尝试使用 gparted 在“设备”上选择“尝试数据救援”,当我点击查看时它发现了这个文件系统:“#1. ext2/3/4, ReiserFS 或 XFS(我的硬盘大小)”错误消息:“由于文件系统不一致,无法挂载文件系统(作为交换)”。
242 sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev
243 sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev libgll-mesa-dev libxext-dev libxt-dev libxll -dev
244 sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev libgll-dev libxext-dev libxt-dev libxll-dev
245 sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common -dev libgl-dev libxext-dev libxt-dev libxll-dev
246 sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev libgl-dev libxext-dev libxt-dev libx11-dev
247 sudo apt-get install -f libglu1-mesa-dev freeglut3-dev mesa-common-dev
248 sudo apt-get --fix-broken install -f libglu1-mesa-dev freeglut3-dev mesa-common-dev
249 sudo apt-get --fix-broken install
250 rm /var/lib/apt/lists/* -vf
251 sudo rm /var/lib/apt/lists/* -vf
252 sudo apt-get update
253 aptitude safe-升级
254 sudo aptitude safe-upgrade
255 sudo aptitude install --force libglu1-mesa-dev freeglut3-dev mesa-common-dev
256 sudo aptitude install -f libglu1-mesa-dev freeglut3-dev mesa-common-dev
257 sudo apt- get install -f libglu1-mesa-dev freeglut3-dev mesa-common-dev
258 sudo apt-get purge -f libglu1-mesa-dev freeglut3-dev mesa-common-dev
259 reboot
260 sudo apt-get install -f libglu1- mesa-dev freeglut3-dev mesa-common-dev
261 sudo apt-get purge -f libglu1-mesa-dev freeglut3-dev
262 sudo apt-get clean
263 sudo apt-get update
264 sudo apt-get install -f libglu1-mesa-dev freeglut3-dev mesa-common-dev
265 sudo dpkg --configure -a
266 sudo apt-get install -f libglu1 -mesa-dev freeglut3-dev mesa-common-dev
267 sudo apt-get autoremove
268 sudo apt-get install -f libglu1-mesa-dev freeglut3-dev mesa-common-dev
269 sudo aptitude -f install libglu1-mesa-dev freeglut3-dev mesa-common-dev
270 sudo aptitude -f purge libglu1-mesa-dev freeglut3-dev mesa-common-dev
271 sudo aptitude -f purge libglu1-mesa-dev freeglut3-dev mesa-common-dev libgl-dev libxext -dev libxt-dev libx11-dev
272 sudo apt-get --fix-missing update
273 sudo apt-get install -f libglu1-mesa-dev freeglut3-dev mesa-common-dev
274 sudo apt-get update
275 sudo apt-get autoclean
276* sudo apt-get
277 sudo dpkg --configure -a
278 sudo dpkg -l | grep ^..r
279 sudo -i gedit /var/lib/dpkg/status
280 sudo -i leafpad /var/lib/dpkg/status
281 sudo cat /var/lib/dpkg/status | grep "状态:"
282 sudo cat /var/lib/dpkg/status | grep“状态:[^install ok installed]”
283 sudo cat /var/lib/dpkg/status | grep“状态:[^sgdk]”
284 sudo cat /var/lib/dpkg/status | grep "状态:[^"安装正常"]"
285 sudo cat /var/lib/dpkg/status | grep "状态:
286 须藤猫/var/lib/dpkg/状态| grep “状态:^install ok 已安装”
287 sudo cat /var/lib/dpkg/status | grep "状态:" | grep -v "安装正常"
288 sudo cat /var/lib/dpkg/status | grep "状态:" | grep -v "ok"
289 sudo cat /var/lib/dpkg/status | grep -n "状态:" | grep -v "ok"
290 sudo cat /var/lib/dpkg/status | grep -n "状态:" | grep -v “安装正常”
291 sudo -i leafpad /var/lib/dpkg/status
292 sudo aptitude install testdisk
293 testdisk
294 sudo aptitude install gpart
295 dpkg --get-selections | grep“持有”
296 dpkg --get-selections | grep 保持
297 突触
298 sudo 突触
299 sudo ls -l /var/lib/apt/lists/
300 testdisk
301 历史
我已经解决了我只需要使用 aptitude 的问题,但我很困惑,因为它向我显示的第一个选项是什么都不做,所以当我在它什么都不做之前运行它时,我只需要不接受第一个选项并选择第二个,谢谢大家。