removed lists

May 12, 2024, 03:15

omar7691

I was running sudo apt-get update on my raspberry pi, however, due to some network issues, I got some errors. I did not know it was due to network issues, but thought that it was due to some damaged list, so I ran the following command: sudo rm /var/lib/apt/lists/ -vf After that, I ran sudo apt-get update again, but the issue persisted, after which I concluded that it must be a network problem. I moved to a place with a better network, and ran sudo apt-update again. The previous error didn't show up, so I knew that it was a network error all along, and that the issue was gone. However, another error showed up: pi@retropie: Ì‹ $ sudo apt-get update apt-get: /lib/arm-linux-gnueabihf/libgcc_s.so.1: version GCC_3.5' not found (required by apt-get) apt-get: /lib/arm-linux-gnueabihf/libgcc_s.so.1: version GCC_3.5' not found (required by /lib/arm-linux-gnueabihf/libapt-private.so.0.0) apt-get: /lib/arm-linux-gnueabihf/libgcc_s.so.1: version GCC_3.5' not found (required by /lib/arm-linux-gnueabihf/libapt-pkg.so.5.0) apt-get: /lib/arm-linux-gnueabihf/libgcc_s.so.1: version GCC_3.3' not found (required by /lib/arm-linux-gnueabihf/libstdc++.so.6) apt-get: /lib/arm-linux-gnueabihf/libgcc_s.so.1: version GCC_3.5' not found (required by /lib/arm-linux-gnueabihf/libstdc++.so.6) apt-get: /lib/arm-linux-gnueabihf/libgcc_s.so.1: version GCC_3.0' not found (required by /lib/arm-linux-gnueabihf/libstdc++.so.6) I'm assuming the libraries I removed earlier using sudo rm /var/lib/apt/lists/ -vf caused this? How do I fix this? I already tried sudo apt-get install --reinstall gcc and sudo apt-get install --reinstall libstdc++6. They both just got the same results as above. I got the idea to run sudo rm /var/lib/apt/lists/* -vf from this thread over here: https://askubuntu.com/questions/454895/update-manager-bug-encountered-a-section-with-no-package-header/454899#454899

omar7691

This is what sudo nano /etc/apt/sources.list gets me:

omar7691

This is what ls /etc/apt/sources.list.d/ gets me:

k9t33n

Sorry for the late reply

k9t33n

Try sudo apt install -f

k9t33n

Or sudo apt update --fix-missing