升级失败
apt upgrade -y
尝试修复
apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
powerd : Depends: repowerd (>= 2018.04+ubports+0~20220810204931.7~1.gbp40e09b) but 2018.04+ubports+0~20220324230500.5~1.gbp47f5a2 is installed
E: Unmet dependencies. Try using -f.
使用建议命令,失败
apt-get -f install
尝试删除包,失败
dpkg --remove --force-remove-reinstreq package_name
解决办法
找到之前安装的包,逐个降级
cat /var/log/dpkg.log | grep 2022-08-18 | grep upgrade | awk '{print $4":"$5}' | awk -F: '{print $1"="$3}' | xargs -i apt-get install {} -y