Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Unable to find expected entry 'main/binary-arm64/Packages'

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
ColinDexter
Posts: 11
Joined: 2017-08-07 06:39

Unable to find expected entry 'main/binary-arm64/Packages'

#1 Post by ColinDexter »

I have the error below while running “sudo apt-get update”.

Code: Select all

W: Failed to fetch http://www.deb-multimedia.org/dists/jessie/InRelease  Unable to find expected entry 'main/binary-arm64/Packages' in Release file (Wrong sources.list entry or malformed file)
I have already run:
sudo apt-get clean
sudo apt-get upgrade
sudo apt-get dist-upgrade.

But this didn’t solve the problem.

$ cat /etc/os-release

Code: Select all

PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
And “dpkg --print-architecture” give: arm64

My source list.

Code: Select all

deb http://ftp.debian.org/debian jessie main contrib non-free
deb http://ftp.debian.org/debian jessie-updates main contrib non-free
deb http://security.debian.org jessie/updates main contrib non-free
deb http://ftp.debian.org/debian jessie-backports main contrib non-free
deb http://ftp.debian.org/debian jessie-proposed-updates contrib non-free main

deb-src http://ftp.debian.org/debian jessie main contrib non-free
deb-src http://ftp.debian.org/debian jessie-updates main contrib non-free
deb-src http://security.debian.org jessie/updates main contrib non-free
deb-src http://ftp.debian.org/debian jessie-backports main contrib non-free
deb-src http://ftp.debian.org/debian jessie-proposed-updates contrib non-free main
Someone any idea how I can solve this?

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: Unable to find expected entry 'main/binary-arm64/Package

#2 Post by arochester »

If you visit http://www.deb-multimedia.org/dists/jessie/InRelease
you will see that there is no package called main/binary-arm64/Packages

There is main/binary-armel/Packages
and main/binary-armhf/Release
but no main/binary-arm64/Packages

Did you have the deb-multimedia repository in your sources list before?

You may have created a frankendebian...

ColinDexter
Posts: 11
Joined: 2017-08-07 06:39

Re: Unable to find expected entry 'main/binary-arm64/Package

#3 Post by ColinDexter »

This is the source list I always had. Nothing changed. Is there a way to solve this?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Unable to find expected entry 'main/binary-arm64/Package

#4 Post by stevepusser »

ColinDexter wrote:This is the source list I always had. Nothing changed. Is there a way to solve this?
Yes, remove deb-multimedia from your sources. As has been pointed out above, they do not provide any packages for the arm64 platform, so that's why you are getting the error.

Just curious, what's your hardware that's arm64? You could install inxi and provide the output of

Code: Select all

inxi -F
MX Linux packager and developer

ColinDexter
Posts: 11
Joined: 2017-08-07 06:39

Re: Unable to find expected entry 'main/binary-arm64/Package

#5 Post by ColinDexter »

Thanks, deb-multimedia problem is solved now. sudo apt-get update runs now without any errors.
But when I want to install sudo apt-get install inxi I get the following errors.

Code: Select all

sudo apt-get install inxi
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.14.29+ linux-image-3.14.29+
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libpci3 pciutils udev
Recommended packages:
  dmidecode hddtemp lm-sensors mesa-utils module-init-tools usbutils x11-utils
  x11-xserver-utils
The following NEW packages will be installed:
  inxi libpci3 pciutils
The following packages will be upgraded:
  udev
1 upgraded, 3 newly installed, 0 to remove and 72 not upgraded.
1 not fully installed or removed.
Need to get 433 kB/1,268 kB of archives.
After this operation, 1,672 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.debian.org/debian/ jessie/main libpci3 arm64 1:3.2.1-3 [49.3 kB]
Get:2 http://ftp.debian.org/debian/ jessie/main pciutils arm64 1:3.2.1-3 [253 kB]
Get:3 http://ftp.debian.org/debian/ jessie/main inxi all 2.1.28-1 [131 kB]
Fetched 433 kB in 5s (74.5 kB/s)
Preconfiguring packages ...
(Reading database ... 77282 files and directories currently installed.)
Preparing to unpack .../udev_215-17+deb8u7_arm64.deb ...
/var/lib/dpkg/info/udev.prerm: 33: /var/lib/dpkg/info/udev.prerm: dpkg-maintscript-helper: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 33: /var/lib/dpkg/tmp.ci/prerm: dpkg-maintscript-helper: not found
dpkg: error processing archive /var/cache/apt/archives/udev_215-17+deb8u7_arm64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/udev.postinst: 225: /var/lib/dpkg/info/udev.postinst: dpkg-maintscript-helper: not found
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 /var/cache/apt/archives/udev_215-17+deb8u7_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Unable to find expected entry 'main/binary-arm64/Package

#6 Post by stevepusser »

/var/lib/dpkg/info/udev.postinst: 225: /var/lib/dpkg/info/udev.postinst: dpkg-maintscript-helper: not found
dpkg-maintscript-helper is a command that is installed as part of dpkg, and is found in every Debian system. See if it really missing in your system by running

Code: Select all

dpkg-maintscript-helper help
If you get an error, your system is somehow damaged. Perhaps you can fix it by reinstalling dpkg:

Code: Select all

apt-get install --reinstall dpkg
If that works, your job is not done. You should try and figure out what caused that to go missing: failing hardware, bad repos, or PEBKAC.
MX Linux packager and developer

ColinDexter
Posts: 11
Joined: 2017-08-07 06:39

Re: Unable to find expected entry 'main/binary-arm64/Package

#7 Post by ColinDexter »

PEBKAC that’s a good one to remember :-)

No, it is almost sure hardware (disk) failure in the past. But how to solve it. dpkg-maintscript-helper help give “unable to execute /usr/bin/dpkg-maintscript-helper: No such file or directory”

And apt-get install --reinstall dpkg

Code: Select all

$ sudo apt-get install --reinstall dpkg
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.14.29+ linux-image-3.14.29+
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  udev
The following packages will be upgraded:
  udev
1 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 72 not upgraded.
1 not fully installed or removed.
Need to get 0 B/3,794 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 77282 files and directories currently installed.)
Preparing to unpack .../udev_215-17+deb8u7_arm64.deb ...
/var/lib/dpkg/info/udev.prerm: 33: /var/lib/dpkg/info/udev.prerm: dpkg-maintscript-helper: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 33: /var/lib/dpkg/tmp.ci/prerm: dpkg-maintscript-helper: not found
dpkg: error processing archive /var/cache/apt/archives/udev_215-17+deb8u7_arm64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/udev.postinst: 225: /var/lib/dpkg/info/udev.postinst: dpkg-maintscript-helper: not found
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 /var/cache/apt/archives/udev_215-17+deb8u7_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
chicken and egg situatio :-(

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Unable to find expected entry 'main/binary-arm64/Package

#8 Post by stevepusser »

Well, a snide answer would be just restore from your backup. :?

Possibly you should save your data if it's not in a separate home partition and reinstall Jessie or Stretch. Separate home partitions rule!

I took a look at your missing file, and it's an arch-independent script. Maybe extracting this and putting it into your /usr/bin will get you back up and running, but don't hold me to it: https://drive.google.com/open?id=0BxE7w ... kJxazN5M0E
MX Linux packager and developer

ColinDexter
Posts: 11
Joined: 2017-08-07 06:39

Re: Unable to find expected entry 'main/binary-arm64/Package

#9 Post by ColinDexter »

Thanks for the answer. I have several backups. I will try to restore these files.

[update]
After restore I can install packages again :-)

Post Reply