sukakuu
Posts: 8
Joined: Wed Oct 31, 2018 1:52 am

error when update repo

Thu Nov 01, 2018 7:01 am

hello sir

why i always get error when update repository ?

i want to install All in one printer Epson L3150
for printer it's OK.. but for scanner always error when update repo

like this:

root@raspberrypi:/home/pi# apt-get update
Hit http://archive.raspbian.org jessie InRelease
Hit http://archive.raspberrypi.org jessie InRelease
Get:1 http://mirrordirector.raspbian.org jessie InRelease [14.9 kB]
Get:2 http://archive.raspbian.org jessie/main Sources [7,761 kB]
Hit http://archive.raspberrypi.org jessie/main Sources
Err http://archive.raspberrypi.org jessie/ui Sources

Hit http://archive.raspberrypi.org jessie/ui Sources
Get:3 http://archive.raspbian.org jessie/contrib Sources [64.5 kB]
Get:4 http://archive.raspbian.org jessie/non-free Sources [113 kB]
Get:5 http://archive.raspbian.org jessie/rpi Sources [1,132 B]
Fetched 7,955 kB in 36s (221 kB/s)
W: Failed to fetch http://mirrordirector.raspbian.org/rasp ... /InRelease Unable to find expected entry 'main/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
root@raspberrypi:/home/pi#


/etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi


any idea ?

thanks before

wh7qq
Posts: 1339
Joined: Thu Oct 09, 2014 2:50 am

Re: error when update repo

Thu Nov 01, 2018 7:19 pm

Jessie is out of date and has been replaced by Stretch. Updates to Jessie may get hung up on the Stretch repos. Download the 10-2018 Raspbian_latest and it updates fine.

DirkS
Posts: 9964
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: error when update repo

Thu Nov 01, 2018 7:25 pm

W: Failed to fetch http://mirrordirector.raspbian.org/rasp ... /InRelease Unable to find expected entry 'main/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
There's a reference to amd64 packages here and that's not available.

Apart from the standard sources.list you listed are there any other list files in directory /etc/apt/sources.list.d ?
Can you post the contents?

sukakuu
Posts: 8
Joined: Wed Oct 31, 2018 1:52 am

Re: error when update repo

Fri Nov 02, 2018 2:06 am

wh7qq wrote:
Thu Nov 01, 2018 7:19 pm
Jessie is out of date and has been replaced by Stretch. Updates to Jessie may get hung up on the Stretch repos. Download the 10-2018 Raspbian_latest and it updates fine.
helloo sir, thank for your respons

so, must upgrade to Stretch ? :|

sukakuu
Posts: 8
Joined: Wed Oct 31, 2018 1:52 am

Re: error when update repo

Fri Nov 02, 2018 2:07 am

DirkS wrote:
Thu Nov 01, 2018 7:25 pm
W: Failed to fetch http://mirrordirector.raspbian.org/rasp ... /InRelease Unable to find expected entry 'main/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
There's a reference to amd64 packages here and that's not available.

Apart from the standard sources.list you listed are there any other list files in directory /etc/apt/sources.list.d ?
Can you post the contents?

hello sir', still default for /etc/apt/sources.list.d
like this


#deb http://archive.raspberrypi.org/debian/ jessie main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspberrypi.org/debian/ jessie main ui

DirkS
Posts: 9964
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: error when update repo

Fri Nov 02, 2018 8:06 pm

sukakuu wrote:
Fri Nov 02, 2018 2:07 am
hello sir', still default for /etc/apt/sources.list.d
like this

#deb http://archive.raspberrypi.org/debian/ jessie main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspberrypi.org/debian/ jessie main ui
That is not the default. The first line should not be commented out. And I'm fairly sure the last line is commented out by default.
Your RPF specific packages will not be updated.

fruitoftheloom
Posts: 20907
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: error when update repo

Fri Nov 02, 2018 9:56 pm

sukakuu wrote:
Fri Nov 02, 2018 2:06 am
wh7qq wrote:
Thu Nov 01, 2018 7:19 pm
Jessie is out of date and has been replaced by Stretch. Updates to Jessie may get hung up on the Stretch repos. Download the 10-2018 Raspbian_latest and it updates fine.
helloo sir, thank for your respons

so, must upgrade to Stretch ? :|

To be blunt about this the only way forward is to start with a fresh install of Raspbian Stretch with Desktop:

https://www.raspberrypi.org/downloads/raspbian/
Retired disgracefully.....

wh7qq
Posts: 1339
Joined: Thu Oct 09, 2014 2:50 am

Re: error when update repo

Fri Nov 02, 2018 10:43 pm

fruitoftheloom wrote:
Fri Nov 02, 2018 9:56 pm


To be blunt about this the only way forward is to start with a fresh install of Raspbian Stretch with Desktop:

https://www.raspberrypi.org/downloads/raspbian/
Amen!

code_exec
Posts: 273
Joined: Sun Sep 30, 2018 12:25 pm

Re: error when update repo

Sat Nov 03, 2018 7:34 am

"Unable to find expected entry 'main/binary-amd64/Packages' in Release file"

Raspbian uses the ARMHF architecture, since this is the architecture that all RPi's are compatible with. However, no Pi is compatible with AMD64 (also known as x64) programs. You most likely added AMD64 as an architecture for dpkg to attempt to get packages for. To remove AMD64 from the list of dpkg architectures, run:

Code: Select all

sudo dpkg --remove-architecture amd64
Then, try running sudo apt update again.
Ubuntu 18.04 LTS desktop images for the Raspberry Pi 3.

https://github.com/CodeExecution/Ubuntu-ARM64-RPi

sukakuu
Posts: 8
Joined: Wed Oct 31, 2018 1:52 am

Re: error when update repo

Mon Nov 05, 2018 1:58 am

code_exec wrote:
Sat Nov 03, 2018 7:34 am
"Unable to find expected entry 'main/binary-amd64/Packages' in Release file"

Raspbian uses the ARMHF architecture, since this is the architecture that all RPi's are compatible with. However, no Pi is compatible with AMD64 (also known as x64) programs. You most likely added AMD64 as an architecture for dpkg to attempt to get packages for. To remove AMD64 from the list of dpkg architectures, run:

Code: Select all

sudo dpkg --remove-architecture amd64
Then, try running sudo apt update again.
thank for your respon..
this result

root@raspberrypi:~# dpkg --remove-architecture amd64
dpkg: error: cannot remove architecture 'amd64' currently in use by the database
root@raspberrypi:~#

sukakuu
Posts: 8
Joined: Wed Oct 31, 2018 1:52 am

Re: error when update repo

Mon Nov 05, 2018 3:54 am

DirkS wrote:
Fri Nov 02, 2018 8:06 pm
sukakuu wrote:
Fri Nov 02, 2018 2:07 am
hello sir', still default for /etc/apt/sources.list.d
like this

#deb http://archive.raspberrypi.org/debian/ jessie main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspberrypi.org/debian/ jessie main ui
That is not the default. The first line should not be commented out. And I'm fairly sure the last line is commented out by default.
Your RPF specific packages will not be updated.
oooh ok

you have default sources.list for jessie sir?

DirkS
Posts: 9964
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: error when update repo

Mon Nov 05, 2018 11:42 am

sukakuu wrote:
Mon Nov 05, 2018 3:54 am
DirkS wrote:
Fri Nov 02, 2018 8:06 pm
sukakuu wrote:
Fri Nov 02, 2018 2:07 am
#deb http://archive.raspberrypi.org/debian/ jessie main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspberrypi.org/debian/ jessie main ui
That is not the default. The first line should not be commented out. And I'm fairly sure the last line is commented out by default.
Your RPF specific packages will not be updated.
you have default sources.list for jessie sir?
Read my earlier response. It's also in the quote above.
But here it is again: uncomment the first line and comment out the last line

sukakuu
Posts: 8
Joined: Wed Oct 31, 2018 1:52 am

Re: error when update repo

Tue Nov 06, 2018 4:35 am

DirkS wrote:
Mon Nov 05, 2018 11:42 am
sukakuu wrote:
Mon Nov 05, 2018 3:54 am
DirkS wrote:
Fri Nov 02, 2018 8:06 pm


That is not the default. The first line should not be commented out. And I'm fairly sure the last line is commented out by default.
Your RPF specific packages will not be updated.
you have default sources.list for jessie sir?
Read my earlier response. It's also in the quote above.
But here it is again: uncomment the first line and comment out the last line


ok, like this

deb http://archive.raspberrypi.org/debian/ jessie main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ jessie main ui

for result

root@raspberrypi:~# apt-get update
Get:1 http://archive.raspberrypi.org jessie InRelease [22.9 kB]
Hit http://archive.raspbian.org jessie InRelease
Get:2 http://archive.raspbian.org jessie/main Sources [7,761 kB]
Get:3 http://archive.raspbian.org jessie/contrib Sources [64.5 kB]
Get:4 http://archive.raspbian.org jessie/non-free Sources [113 kB]
Get:5 http://archive.raspbian.org jessie/rpi Sources [1,132 B]
Fetched 22.9 kB in 14s (1,632 B/s)
W: Failed to fetch http://archive.raspberrypi.org/debian/d ... /InRelease Unable to find expected entry 'main/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
root@raspberrypi:~#

how about this sir?

fruitoftheloom
Posts: 20907
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: error when update repo

Tue Nov 06, 2018 8:13 am

sukakuu wrote:
Tue Nov 06, 2018 4:35 am
DirkS wrote:
Mon Nov 05, 2018 11:42 am
sukakuu wrote:
Mon Nov 05, 2018 3:54 am

you have default sources.list for jessie sir?
Read my earlier response. It's also in the quote above.
But here it is again: uncomment the first line and comment out the last line


ok, like this

deb http://archive.raspberrypi.org/debian/ jessie main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ jessie main ui

for result

root@raspberrypi:~# apt-get update
Get:1 http://archive.raspberrypi.org jessie InRelease [22.9 kB]
Hit http://archive.raspbian.org jessie InRelease
Get:2 http://archive.raspbian.org jessie/main Sources [7,761 kB]
Get:3 http://archive.raspbian.org jessie/contrib Sources [64.5 kB]
Get:4 http://archive.raspbian.org jessie/non-free Sources [113 kB]
Get:5 http://archive.raspbian.org jessie/rpi Sources [1,132 B]
Fetched 22.9 kB in 14s (1,632 B/s)
W: Failed to fetch http://archive.raspberrypi.org/debian/d ... /InRelease Unable to find expected entry 'main/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
root@raspberrypi:~#

how about this sir?

viewtopic.php?f=66&t=225987#p1387453
Retired disgracefully.....

sukakuu
Posts: 8
Joined: Wed Oct 31, 2018 1:52 am

Re: error when update repo

Tue Nov 06, 2018 8:53 am

fruitoftheloom wrote:
Tue Nov 06, 2018 8:13 am
sukakuu wrote:
Tue Nov 06, 2018 4:35 am
DirkS wrote:
Mon Nov 05, 2018 11:42 am


Read my earlier response. It's also in the quote above.
But here it is again: uncomment the first line and comment out the last line


ok, like this

deb http://archive.raspberrypi.org/debian/ jessie main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ jessie main ui

for result

root@raspberrypi:~# apt-get update
Get:1 http://archive.raspberrypi.org jessie InRelease [22.9 kB]
Hit http://archive.raspbian.org jessie InRelease
Get:2 http://archive.raspbian.org jessie/main Sources [7,761 kB]
Get:3 http://archive.raspbian.org jessie/contrib Sources [64.5 kB]
Get:4 http://archive.raspbian.org jessie/non-free Sources [113 kB]
Get:5 http://archive.raspbian.org jessie/rpi Sources [1,132 B]
Fetched 22.9 kB in 14s (1,632 B/s)
W: Failed to fetch http://archive.raspberrypi.org/debian/d ... /InRelease Unable to find expected entry 'main/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
root@raspberrypi:~#

how about this sir?

viewtopic.php?f=66&t=225987#p1387453

that's final sollution? :|

DirkS
Posts: 9964
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: error when update repo

Tue Nov 06, 2018 8:55 am

sukakuu wrote:
Tue Nov 06, 2018 4:35 am
W: Failed to fetch http://archive.raspberrypi.org/debian/d ... /InRelease Unable to find expected entry 'main/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
root@raspberrypi:~#

how about this sir?
Did you at some point (try to) install an x86 / amd64 package?

What is the output of

Code: Select all

dpkg-query -l | grep amd64
?

sukakuu
Posts: 8
Joined: Wed Oct 31, 2018 1:52 am

Re: error when update repo

Mon Nov 12, 2018 1:13 am

DirkS wrote:
Tue Nov 06, 2018 8:55 am
sukakuu wrote:
Tue Nov 06, 2018 4:35 am
W: Failed to fetch http://archive.raspberrypi.org/debian/d ... /InRelease Unable to find expected entry 'main/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
root@raspberrypi:~#

how about this sir?
Did you at some point (try to) install an x86 / amd64 package?

What is the output of

Code: Select all

dpkg-query -l | grep amd64
?

result

root@raspberrypi:~# dpkg-query -l | grep amd64
iU epson-inkjet-printer-201207w 1.0.0-1lsb3.2 amd64 EPSON L110/210/300/350/355/550/555 Series - Epson Inkjet Printer Driver
iU epson-printer-utility 1.0.2-1lsb3.2 amd64 Epson Printer Utility for Linux
iU libatkmm-1.6-1v5:amd64 2.24.2-3 amd64 C++ wrappers for ATK accessibility toolkit (shared libraries)

DirkS
Posts: 9964
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: error when update repo

Mon Nov 12, 2018 11:55 am

You seem to have a habit of giving partial answers...

But it looks like you tried to install some amd64 programs (drivers) at some point. To remove them I would try the following:
Make a backup of your SD card and then run

Code: Select all

sudo apt-get remove ".*:amd64"
sudo dpkg --remove-architecture amd64

Return to “Raspbian”