问题
When I run apt-get update I get:
W: GPG error: http://security.debian.org stretch/updates InRelease: Unknown error executing apt-key
W: GPG error: http://ftp.be.debian.org/debian stretch Release: Unknown error executing apt-key
E: Failed to fetch /
E: Failed to fetch /
E: Failed to fetch /
E: Failed to fetch /
E: Failed to fetch /
E: Failed to fetch /
E: Some index files failed to download. They have been ignored, or old ones used instead.
I have a yocto linux install, which had apt installed, but the sources.list was empty, so I added these deb sources:
deb [trusted=yes] http://security.debian.org/ stretch/updates main contrib non-free
deb [trusted=yes] http://ftp.be.debian.org/debian/ stretch main contrib non-free
deb-src [trusted=yes] http://ftp.be.debian.org/debian/ stretch main contrib non-free
I googled and found that I need to add a gpg key with apt-key add, but when I try to do that it says I need to install gnupg
Error: gnupg or gnupg2 do not seem to be installed,
Error: but apt-key requires gnupg or gnupg2 for this operation.
That would be fixed by running apt-get install gnupg or gnupg2. When I try to install anything with apt-get install anything, I get this:
Archives directory /var/cache/apt/archives/partial is missing. - Acquire (2: No such file or directory)
Additional info: My roots partition was too small to add packages, so I did this:
sudo mv -i /var/cache/apt /media/{dir_of_mounted_disc}
sudo ln -s /media/{dir_of_mounted_disc}/apt /var/cache/apt
(Got this from here:)
https://askubuntu.com/questions/178909/not-enough-space-in-var-cache-apt-archives
Hopefully someone knows what's the problem or knows how to fix that. I'm getting insane
来源:https://stackoverflow.com/questions/59989380/cant-run-apt-get-update-on-yocto-linux