Replies: 1 comment
-
|
If anyone runs into the same issue, the solution is dumb simple but unbelievable that there were so many hoops to jump through to get to this solution: Edit |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was messing around with WSL in order to cross-compile something into x86, so I added
amd64into mydpkgarchitecture configuration to get some development headers. This worked fine, but now I am trying to runapt updateand it gave me some errors on fetchingamd64packages. I then attempted to remove said packages and the architecture all-together andapt updateseems to be broken, and I need some help reverting it.apt-log.txt
My apt-update log is attached above. It keeps trying to fetch
amd64binaries fromports.ubuntu.comand other sources.I have cleared my
/etc/apt/source.listand reverted it to empty/default. I would expect this to then only fetcharm64packages but still it keeps trying to fetchamd64I then tried the following:
Just to see what packages are being used:
user@machine:/mnt/c/Users/user$ dpkg -l | grep amd64 rc libc6:amd64 2.39-0ubuntu8.5 amd64 GNU C Library: Shared libraries ri libgcc-s1:amd64 14.2.0-4ubuntu2~24.04 amd64 GCC support libraryThese are "marked as essential" on the machine, and I can't find anything online if they are actually essential to Windows Surface Pro or if they are artifacts of my previous installation? I assumed the latter, and tried to force removing them using:
But with no avail. I then tried to just do some other
apt-isms to try to get it working including:sudo rm -rf /var/lib/apt/lists/* sudo apt clean sudo apt updateBut it is still failing... And with error-code 1 (FAILURE) so I literally am unable to update my lists and as a result, I can not
apt installanything. I have no idea how to revert this and would like all the help I can get.Beta Was this translation helpful? Give feedback.
All reactions