我在尝试通过键入以下内容更新包列表时遇到错误sudo apt-get update
:
...
Get:26 http://deb.opera.com/opera-stable stable/non-free i386 Packages [1 828 B]
Fetched 12,5 kB in 3s (3 129 B/s)
Reading package lists... Done
E: Failed to stat /var/lib/apt/lists/partial/deb.opera.com_opera-stable_dists_stable_InRelease - pkgAcqTransactionItem::TransactionState-stat (2: No such file or directory)
E: Failed to stat /var/lib/apt/lists/partial/deb.opera.com_opera-stable_dists_stable_non-free_binary-amd64_Packages - pkgAcqTransactionItem::TransactionState-stat (2: No such file or directory)
E: Failed to stat /var/lib/apt/lists/partial/deb.opera.com_opera-stable_dists_stable_non-free_binary-i386_Packages - pkgAcqTransactionItem::TransactionState-stat (2: No such file or directory)tory)
E: Failed to stat /var/lib/apt/lists/partial/deb.opera.com_opera-stable_dists_stable_non-free_binary-i386_Packages - pkgAcqTransactionItem::TransactionState-stat (2: No such file or directory)
并且我在这条路径上没有文件。
如何修复问题?
答案1
遇到了同样的问题,但必须结合上述内容。
步骤 1:删除 Opera
sudo apt-get purge opera-stable
第2步:
sudo apt-get update
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
步骤3:安装Opera
sudo apt-get install opera-stable
答案2
我的系统也遇到了同样的问题。我刚刚重新启动更新:
bash$ sudo apt-get update
bash$ sudo apt-get clean
bash$ sudo apt-get update
bash$ sudo apt-get upgrade
停止了一段时间,因为 Opera 下载 50MB 的文件花了将近 2 分钟(在理论下载带宽为 2.5MB/s 的位置),但过了一会儿,一切都顺利完成,没有任何错误。
答案3
作为解决问题的方法之一,我将讲述我解决问题的步骤:
/var/lib/apt/lists/partial
从( )中删除所有内容sudo rm /var/lib/apt/lists/partial/*
;- 卸载
opera
(sudo apt-get purge opera-stable
); - 更新存储库列表 (
sudo apt-get get update
) -顺利完成; - 安装
opera
(sudo apt-get install opera-stable
);
我不知道为什么清理部分目录没有在不重新安装的情况下解决问题opera
,但它现在有效了。