我最近使用 Debian Jessie 构建了一台新机器。在我升级到拉伸后不久,一切似乎都很好,除了当我运行“apt-get update”时不断弹出一个顽固的错误。
Err:12 http://security.debian.org stretch/updates/non-free Translation-en ***Could not open file /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2 - open (13: Permission denied) [IP: 212.211.132.32 80]****
Run Code Online (Sandbox Code Playgroud)
最后
E: Failed to fetch http://security.debian.org/dists/stretch/updates/non-free/i18n/Translation-en Could not open file /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2 - open (13: Permission denied) [IP: 212.211.132.32 80]
Run Code Online (Sandbox Code Playgroud)
当时几乎没有关于如何形成文件的建议,我只是使用了我现有的sources.list,并用“ Stretch ”替换了“ Jessie ”的任何提及
任何人都可以提出想法吗?
所以解决方案是删除/var/lib/apt/lists/partialas root的内容(只是内容而不是目录)
rm /var/lib/apt/lists/partial/*
Run Code Online (Sandbox Code Playgroud)
并在执行此命令后:
apt-get update
Run Code Online (Sandbox Code Playgroud)
告诉我们问题是否仍然存在;)。