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

Help with issues regarding installation of Debian

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

Postby ColinDexter » 2017-09-17 09:16

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?
ColinDexter
 
Posts: 11
Joined: 2017-08-07 06:39

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

Postby arochester » 2017-09-17 10:36

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...
"Something to be aware of: Debian is a core or source distribution. This means there are many Debian-based distributions. THEY ARE NOT DEBIAN."
arochester
 
Posts: 1054
Joined: 2010-12-07 19:55

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

Postby ColinDexter » 2017-09-17 12:54

This is the source list I always had. Nothing changed. Is there a way to solve this?
ColinDexter
 
Posts: 11
Joined: 2017-08-07 06:39

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

Postby stevepusser » 2017-09-17 17:24

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
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.5.0, Liquorix kernel 4.12-10, mpv 0.27.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8817
Joined: 2009-10-06 05:53

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

Postby ColinDexter » 2017-09-18 16:47

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)
ColinDexter
 
Posts: 11
Joined: 2017-08-07 06:39

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

Postby stevepusser » 2017-09-18 20:14

/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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.5.0, Liquorix kernel 4.12-10, mpv 0.27.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8817
Joined: 2009-10-06 05:53

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

Postby ColinDexter » 2017-09-19 15:35

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 :-(
ColinDexter
 
Posts: 11
Joined: 2017-08-07 06:39

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

Postby stevepusser » 2017-09-19 17:15

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
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.5.0, Liquorix kernel 4.12-10, mpv 0.27.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8817
Joined: 2009-10-06 05:53

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

Postby ColinDexter » 2017-09-20 16:58

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

[update]
After restore I can install packages again :-)
ColinDexter
 
Posts: 11
Joined: 2017-08-07 06:39


Return to Installation

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable