网上千篇一律下面的命令:
rm /var/lib/apt/lists/* -vf
apt update
然而并没有什么用,还需要下面的命令:
rm /var/lib/dpkg/status
touch /var/lib/dpkg/status
apt update
参考自https://ostechnix.com/fix-encountered-a-section-with-no-package-header-error-in-ubuntu/
网上千篇一律下面的命令:
rm /var/lib/apt/lists/* -vf
apt update
然而并没有什么用,还需要下面的命令:
rm /var/lib/dpkg/status
touch /var/lib/dpkg/status
apt update
参考自https://ostechnix.com/fix-encountered-a-section-with-no-package-header-error-in-ubuntu/