无法计算升级 An unresolvable problem occurred while calculating the upgrade. This was likely caused by

jetson ubuntu18升级到 22.04 报错无法计算升级 An unresolvable problem occurred while calculating the upgrade. This was likely caused by: * Unofficial software packages not provided by Ubuntu Please use the tool ‘ppa-purge’ from the ppa-purge package to remove software from a Launchpad PPA and try the upgrade again. If none of this applies, then please report this bug using the command ‘ubuntu-bug ubuntu-release-upgrader-core’ in a terminal. If you want to investigate this yourself the log files in ‘/var/log/dist-upgrade’ will contain details about the upgrade. Specifically, look at ‘main.log’ and ‘apt.log’.

[解决方法]:

 sudo apt remove ros-*      来卸载ROS
 最后运行 
 sudo apt autoremove 将卸载ROS剩下的软件包删除
 接下来正常升级
 sudo apt-get purge chromium-*    卸载chromium
 sudo vim  /etc/update-manager/release-upgrades    将Prompt=never改为Prompt=lts
 sudo apt-get update
sudo apt-get full-upgrade

sudo apt-get autoremove  卸载无关软件包

sudo mv /var/lib/dpkg/info/ /var/lib/dpkg/info_bak/ 
sudo mkdir /var/lib/dpkg/info/

更新软件源

sudo apt-get update
sudo apt-get -f install
sudo apt-get full-upgrade
sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_bak/
sudo rm -rf /var/lib/dpkg/info
sudo mv /var/lib/dpkg/info_bak/ /var/lib/dpkg/info/
sudo reboot
sudo apt-get update
sudo apt-get full-upgrade
sudo apt-get autoremove

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值