Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 14343  / 1 Year ago, mon, may 8, 2023, 3:33:31

I im trying to do



sudo apt-get update


but i get the following error:



W: Failed to fetch http://ftp.udc.es/ubuntu/dists/trusty/Release  Unable to find   expected entry 'main/binary-x8-64/Packages' in Release file (Wrong sources.list entry or malformed file)


I have tried resetting the /etc/apt/sources.list like is here suggested:



How do I restore the default repositories?



And also tried to select another server from which to download the updates: 'sudo apt-get update' error on Ubuntu 12.04



But I keep getting the same damned error message. Any ideas?



As asked in comment, doing:



$ grep -R ftp.udc.es /etc/apt/sources.list*
/etc/apt/sources.list:deb http://ftp.udc.es/ubuntu/ trusty main universe
/etc/apt/sources.list.save:deb http://ftp.udc.es/ubuntu/ trusty main

$ cat sources.list
## See sources.list(5) for more information, especialy
# Remember that you can only use http, ftp or file URIs
deb http://ftp.udc.es/ubuntu/ trusty main universe
# CDROMs are managed through the apt-cdrom tool.

$ dpkg --print-architecture
amd64
$ dpkg --print-foreign-architectures
i386
x8664
x8-64
x864

More From » apt

 Answers
1

As can be seen from the output of dpkg --print-foreign-architectures, you have a bunch of invalid architectures added, for some reason. Remove them:



sudo dpkg --remove-architecture x8664
sudo dpkg --remove-architecture x8-64
sudo dpkg --remove-architecture x864


In future, do check what you're adding.


[#21153] Tuesday, May 9, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eanda

Total Points: 439
Total Questions: 116
Total Answers: 105

Location: Armenia
Member since Sat, Dec 31, 2022
1 Year ago
eanda questions
Tue, Nov 22, 22, 15:24, 1 Year ago
Sat, Oct 16, 21, 23:48, 3 Years ago
Sun, Jul 3, 22, 09:38, 2 Years ago
Thu, Feb 3, 22, 14:33, 2 Years ago
;