在manjaro中想卸載掉Python3.7,不小心把系統(tǒng)的全部依賴也卸載了,導(dǎo)致pacman不能正常使用,參考wiki的解決方法:
如果 pacman 完全壞掉不能使用,需要手動(dòng)下載或構(gòu)建需要的軟件包(openssl, libarchive 和 pacman) 并解壓到根目錄。pacman 會(huì)和默認(rèn)配置文件一起恢復(fù)。之后,用 pacman重新安裝這些軟件包以保證數(shù)據(jù)庫(kù)的完整性。
oppenssl 1.1.1下載:點(diǎn)擊下載
libarchive 3.3.3下載:點(diǎn)擊下載
pacman 5.1.1下載:點(diǎn)擊下載
解壓到根目錄
解壓openssl
sudo tar xvf openssl-1.1.1-1-x86_64.pkg.tar.xz -C /
解壓libarchive
sudo tar xvf libarchive-3.3.3-1-x86_64.pkg.tar.xz -C /
解壓pacman
sudo tar xvf pacman-5.1.1-1-x86_64.pkg.tar.xz -C /
然后就可以使用了
參考: PacmanWiki