Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odroid C2 Unable to find expected entry 'main/binary-arm64/Packages' in Release File #1915

Closed
gittusmaximus opened this issue Jul 12, 2018 · 22 comments
Assignees
Labels
ARMv8 External bug 🐞 For bugs which are not caused by DietPi. Jessie Solution available 🥂 Definite solution has been done
Milestone

Comments

@gittusmaximus
Copy link

gittusmaximus commented Jul 12, 2018

Workaround: https://github.com/Fourdee/DietPi/issues/1915#issuecomment-405341067


Details:

  • Date | Wed 11 Jul 13:21:35 -12 2018
  • Bug report | N/A
  • DietPi version | v6.11
  • Img creator | ETCHER
  • Pre-image | n/a
  • SBC device | Odroid C2 (aarch64) (index=12)
  • Kernel version | Fix warning when running scp over openssh-server #1 SMP PREEMPT Sun Jul 23 00:04:44 CEST 2017
  • Distro | jessie (index=3)
  • Command | G_AGUP
  • Exit code | 100
  • Software title | DietPi-Software

Steps to reproduce:

  1. Installing through dietpi-software
  2. Occurred lots when updating from 6.9 to 6.11 (kept trying to rerun last command and version updated but problem still persists in dietpi-software installs.

Expected behaviour:

Things should be installed.

Actual behaviour:

Doesn't install and throws this (as shown in log file below):
W: Failed to fetch http://deb.debian.org/debian-security/dists/jessie/updates/InRelease Unable to find expected entry 'main/binary-arm64/Packages' in Release file (Wrong sources.list entry or malformed file)

Extra details:

I know I messed with adding some 32bit libraries so I could try mess around with Boinc but I cannot remember how I did this or where the instructions are.

I also tried using the solutions provided here: https://github.com/Fourdee/DietPi/issues/653
but I got a 404 Not Found when running the first command. I then looked up the repo and found that the specified "libc6_2.19-18+deb8u6_arm64.deb" does not exist there anymore, I saw that "deb8u10_arm64.deb" did so I amended the commands thinking this might help but nope.

I eventually managed to install build-essential through apt-get install whereas prior to running the above commands I was unable to.

I've also tried changing APT mirrors but this fails to work either.

I tried to create a bugreport but this occurred:
[ INFO ] DietPi-Bugreport | Packing upload archive, please wait...
[......] DietPi-Bugreport | (1/5) Testing connection to dietpi.com, please wait.[ OK ] DietPi-Bugreport | Connection test: dietpi.com
stat: cannot stat ‘6dba9225-2d2d-430b-85f7-3dfb164b9148.7z’: No such file or directory
/DietPi/dietpi/dietpi-bugreport: line 154: ((: <= 10000000 : syntax error: operand expected (error token is "<= 10000000 ")
[FAILED] DietPi-Bugreport | The bug report upload archive appears to be unexpected large. Please inspect and in case clean up the locations to be uploaded, as their size should never be that large:
CMD_OUT.txt
G_ERROR_HANDLER_GITREPORT
/var/log/*
/DietPi/*
/boot/dietpi.txt
/boot/config.txt
/boot/dietpi/*
/tmp/.G*
/var/tmp/dietpi/logs/*
/var/lib/dietpi/*
/etc/bash.bashrc
/etc/bashrc.d/*
/root/.bashrc
/home//.bashrc
/etc/profile
/etc/profile.d/

/root/.profile
/home//.profile
/etc/rc.local
/etc/X11/xorg.conf
/etc/asound.conf
/etc/network/interfaces
/etc/fstab
/etc/sysctl.conf
/etc/sysctl.d/

/etc/init.d/*
/etc/systemd/system/*
/lib/systemd/system/*
/etc/apt/sources.list
/etc/apt/sources.list.d/*

  • ...

Additional logs:

Log file contents:
Hit http://deb.debian.org jessie/updates InRelease
Ign http://ftp.debian.org jessie InRelease
Hit http://fuzon.co.uk all InRelease
Hit http://ftp.debian.org jessie-updates InRelease
Hit http://fuzon.co.uk jessie InRelease
Hit http://ftp.debian.org jessie-backports InRelease
Hit http://ftp.debian.org jessie Release.gpg
Get:1 http://ftp.debian.org jessie-updates/main arm64 Packages/DiffIndex [11.8 kB]
Hit http://ftp.debian.org jessie-updates/contrib arm64 Packages
Get:2 http://ftp.debian.org jessie-updates/non-free arm64 Packages/DiffIndex [736 B]
Hit http://ftp.debian.org jessie-updates/contrib Translation-en
Get:3 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [3,688 B]
Get:4 http://ftp.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Get:5 http://ftp.debian.org jessie-backports/main arm64 Packages/DiffIndex [27.8 kB]
Get:6 http://ftp.debian.org jessie-backports/contrib arm64 Packages/DiffIndex [23.9 kB]
Get:7 http://ftp.debian.org jessie-backports/non-free arm64 Packages/DiffIndex [8,530 B]
Get:8 http://ftp.debian.org jessie-backports/contrib Translation-en/DiffIndex [7,960 B]
Get:9 http://ftp.debian.org jessie-backports/main Translation-en/DiffIndex [27.8 kB]
Get:10 http://ftp.debian.org jessie-backports/non-free Translation-en/DiffIndex [19.1 kB]
Hit http://fuzon.co.uk all/c2 arm64 Packages
Hit http://ftp.debian.org jessie Release
Hit http://fuzon.co.uk all/main arm64 Packages
Hit http://fuzon.co.uk all/testing arm64 Packages
Hit http://ftp.debian.org jessie/main arm64 Packages
Hit http://ftp.debian.org jessie/contrib arm64 Packages
Hit http://fuzon.co.uk jessie/backports arm64 Packages
Hit http://ftp.debian.org jessie/non-free arm64 Packages
Hit http://fuzon.co.uk jessie/main arm64 Packages
Hit http://ftp.debian.org jessie/contrib Translation-en
Hit http://ftp.debian.org jessie/main Translation-en
Hit http://ftp.debian.org jessie/non-free Translation-en
Ign http://fuzon.co.uk all/c2 Translation-en_GB
Ign http://fuzon.co.uk all/c2 Translation-en
Ign http://fuzon.co.uk all/main Translation-en_GB
Ign http://fuzon.co.uk all/main Translation-en
Ign http://fuzon.co.uk all/testing Translation-en_GB
Ign http://fuzon.co.uk all/testing Translation-en
Ign http://fuzon.co.uk jessie/backports Translation-en_GB
Ign http://fuzon.co.uk jessie/backports Translation-en
Ign http://fuzon.co.uk jessie/main Translation-en_GB
Ign http://fuzon.co.uk jessie/main Translation-en
Fetched 132 kB in 18s (7,049 B/s)
W: Failed to fetch http://deb.debian.org/debian-security/dists/jessie/updates/InRelease  Unable to find expected entry 'main/binary-arm64/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.
@gittusmaximus
Copy link
Author

Changing my sources like this: https://dietpi.com/phpbb/viewtopic.php?t=1373#p5798
also didn't work.

As evidenced by my wall of text I am a noob and so this is quite far out of my ability level.
I've noticed this issue with other users recently hence posting here in such detail.

This is what I got when checking sources.list

root@Skynet-C2:~# cat  /etc/apt/sources.list
deb http://security.debian.org jessie/updates  main contrib non-free
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://ftp.debian.org/debian jessie-backports main contrib non-free


root@Skynet-C2:~# cat /etc/apt/sources.list.d/*
deb [arch=arm64] http://fuzon.co.uk/meveric all c2
deb http://fuzon.co.uk/meveric all main
deb http://fuzon.co.uk/meveric all testing
deb http://fuzon.co.uk/meveric jessie backports
deb http://fuzon.co.uk/meveric jessie main

Will leave it for now till someone more knowledgeable comes along but I hope this makes it easier.

@BerndKohl
Copy link

Having the same problem!
Please fix as I am no longer able to update Dietpi or any other piece of software in my Odroid.

@MichaIng MichaIng added the Outside of DietPi scripts eg: user installed/configured software label Jul 14, 2018
@MichaIng
Copy link
Owner

@gittusmaximus
Thanks for your report.

W: Failed to fetch http://deb.debian.org/debian-security/dists/jessie/updates/InRelease Unable to find expected entry 'main/binary-arm64/Packages' in Release file (Wrong sources.list entry or malformed file)

Indeed binary-arm64 subfolder and InRelease entries are not available within the Debian security repos:
http://security.debian.org/debian-security/dists/jessie/updates/main/
http://security.debian.org/dists/jessie/updates/main/

But binary-all instead, which should be successfully used here.

@BerndKohl
Just to be sure, you also use an ARMv8/aarch64/arm64 device, right?
To check: echo $G_HW_ARCH

It seems to be due to changes within Debian repo structure, although I cannot believe they produce such an error across all arm64 devices 🤔.

Just to sort that our: Could you both try: apt-get clean && apt-get update

@BerndKohl
Copy link

echo $G_HW_ARCH
3

apt-get clean && apt-get update
Ign http://fuzon.co.uk jessie/main Translation-en
Fetched 756 kB in 12s (59.1 kB/s)
W: Failed to fetch http://deb.debian.org/debian-security/dists/jessie/updates/InRelease Unable to find expected entry 'main/binary-arm64/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.

@Fourdee Fourdee added the Jessie label Jul 14, 2018
@Fourdee
Copy link
Collaborator

Fourdee commented Jul 14, 2018

Unable to replicate on C2 with Stretch. Assuming this is Jessie limited issue.

https://cdn-aws.deb.debian.org/debian-security/dists/stretch/updates/InRelease

🈯️ Architectures: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x

http://deb.debian.org/debian-security/dists/jessie/updates/InRelease

🈴 Seems they removed ARM64 binaries | Architectures: amd64 armel armhf i386

@Fourdee Fourdee added External bug 🐞 For bugs which are not caused by DietPi. and removed Outside of DietPi scripts eg: user installed/configured software labels Jul 14, 2018
@Fourdee
Copy link
Collaborator

Fourdee commented Jul 14, 2018

This is an external bug, however, we'll try to find a solution.

A very quick workaround, would be to remove the offending entry from /etc/apt/sources.list:

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

@BerndKohl
Copy link

sorry for this silly question: but how do I do this? Simply putting a # in front of the offending entry didn't do the trick...

@BerndKohl
Copy link

ok, I got it. Had to remove this entry:

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

Is it safe now to call DietPi-update or will it break something?

@gittusmaximus
Copy link
Author

gittusmaximus commented Jul 14, 2018

Just to sort that our: Could you both try: apt-get clean && apt-get update
No change in issue, same as BerndKohl

removed offending line from sources.list
and apt-get update works without sending that error message.

Just tried installing new software and the issue seems to have gone.
ie G_AGUP doesn't send exit code 100 and it installs new software.

DietPi-Software
─────────────────────────────────────────────────────
 Mode: Installation completed

[  OK  ] DietPi-Software | The system will now reboot.
 This completes the DietPi-Software installation.

Thanks very much @Fourdee and @MichaIng , appreciate your time and help providing a workaround for this problem.
Will be sticking with your OS for quite some time now!

@BerndKohl
Copy link

Successfully upgraded DietPi from 6.9 to 6.11 after having removed the offending line.

Thanks for your support on this!

@MichaIng
Copy link
Owner

MichaIng commented Jul 15, 2018

@gittusmaximus @BerndKohl
The offending line contains the the Debian security update repository: https://www.debian.org/security/
It provides security relevant APT package updates a bid earlier than the main repo/mirror and allows admins of extremely importantly running servers to e.g. update security patches only, while leaving all other APT packages untouched to reduce risk of server downs. But as long as you don't want to actively achieve this, the security repo is indeed from minor importance, as you will receive the same updates max. a day later from main repo 👍.

Just note, that if you change the repository via dietpi-config, it will re-add the security repo. We will check, if the repo error is still present and in case fix it for Jessie with next DietPi release. But I have hope that this is a temporary issue and they did not really decide to drop security repo support for arm64 devices 🤔.

@rickers1960
Copy link

ok, I got it. Had to remove this entry:

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

Apologies but I am a complete novice, can someone help explain how to remove this entry in order that i may update my C2, I am putty.exe to connect to my C2.

thanks in advance .

@MichaIng
Copy link
Owner

MichaIng commented Jul 16, 2018

@rickers1960
Fast solution, after logging into SSH terminal, copy and return:
sed -i '/debian-security/d' etc/apt/sources.list

In order to learn a bid about navigating and editing through Linux:
NB: If you don't log in with root user, you need to add sudo to beginning of the terminal commands, at least nano ... => sudo nano ..., to gain root permissions for editing the file.

  • cd /etc/apt to navigate to the APT (package manager) configuration directory
  • ls -l to see the content of this directory, "sources.list" should show up as well
  • nano sources.list to edit the file with "nano" command line editor
  • Navigate to the line deb http://deb.debian.org/debian-security/ jessie/updates main contrib non-free via arrow keys.
  • Press <ctrl>+<k> to cut (and by this remove) the line.
  • Press <ctrl>+<o> to safe changes.
  • Press <return> to affirm.
  • Press <ctrl>+<x> to exit "nano".
  • cd ~ to navigate back to home directory, which is /root, respectively /home/<username> if you didn't log in with root user.

@rickers1960
Copy link

Thanks for the quick reply , I am logging in with root .

I have removed the problem line but still unable to complete update .

Please see attached file

DietPi.docx

Any ideas on what is wrong ?

@MichaIng
Copy link
Owner

@rickers1960
Connection to fuzon mirror of meverics repo is failing.

@Fourdee
I can't ping the domain, is this correct?
https://github.com/Fourdee/DietPi/blob/master/PREP_SYSTEM_FOR_DIETPI.sh#L601

@Fourdee
Copy link
Collaborator

Fourdee commented Jul 16, 2018

@MichaIng

Its back up and running, it runs on the older MVS account system, Paypal payments are manual. Error my end:
image

@rickers1960
Copy link

Thanks to both , I have now updated to 6.11

@Fourdee
Copy link
Collaborator

Fourdee commented Jul 16, 2018

Ok, I think we can assume Debian Security Repo has dropped support for ARM64 on Jessie. I'll apply a patch removal for v6.12.

@MichaIng
Copy link
Owner

MichaIng commented Jul 16, 2018

@Fourdee
Maybe add Meveric APT mirror to dietpi.com, so on the long hand you can close the other domain+MVS?

About Debian security mirror, jep it seems. I can't believe it 🤔.

@Fourdee
Copy link
Collaborator

Fourdee commented Jul 16, 2018

Workaround:

sed -i '/debian-security/d' /etc/apt/sources.list
G_AGUP

@Fourdee Fourdee added the Solution available 🥂 Definite solution has been done label Jul 16, 2018
@Fourdee
Copy link
Collaborator

Fourdee commented Jul 16, 2018

@MichaIng

Maybe add Meveric APT mirror to dietpi.com, so on the long hand you can close the other domain+MVS?

Yep, issue is HDD space, and, I also give full access to Meveric for this server (least we can do to support his work over the years):

root@fuzon:~# df -h
Filesystem         Size  Used Avail Use% Mounted on
/dev/ploop14827p1   50G   33G   15G  69% /

Fourdee referenced this issue Jul 16, 2018
+General | Resolved an issue on ARM64 + Jessie with APT, due to debian-security removing suppport and packages for those devices. If you experience this issue, and are unable to update DietPi, please see : https://github.com/Fourdee/DietPi/issues/1915
@Fourdee
Copy link
Collaborator

Fourdee commented Jul 16, 2018

Completed.

@Fourdee Fourdee closed this as completed Jul 16, 2018
@Fourdee Fourdee mentioned this issue Jul 18, 2018
Fourdee referenced this issue Jul 19, 2018
**v6.12**
(19/07/18)

**Changes / Improvements / Optimizations:**

DietPi-Drive_Manager | Samba/CIFS mounting: Now automatically uses the highest available CIFS version supported on client and server: https://github.com/Fourdee/DietPi/issues/1893#issuecomment-403034799

DietPi-Software | Jackett: Now runs as its own user, and, from the /opt/jackett directory, for new installations only. Many thanks to @userdeveloper98 for contributing this improvement: https://github.com/Fourdee/DietPi/pull/1895

DietPi-Software | MiniDLNA: Now uses a SystemD service, also updates its library during service start.

DietPi-Software | JRiver: Removed and no longer available for installation: https://github.com/Fourdee/DietPi/issues/1080#issuecomment-403489246

DietPi-Software | Various titles: Now run under their own system user account, with limited permissions (previously root): https://github.com/Fourdee/DietPi/issues/1877#issuecomment-403298679

DietPi-Software | SABnzbd: Language packs are now installed by default: https://github.com/Fourdee/DietPi/issues/1917#issue-340631943

DietPi-RAMlog | Increased the max size of /var/log to 50MB by default (previously 20MB). This should prevent 0 free space errors for excessive log file usage. Pi-Hole max logfile size is now 50MB/3 (16MB~) for high usage with daily stats support: pi-hole/pi-hole#2270 (comment) | https://github.com/Fourdee/DietPi/issues/1923

DietPi-RAMlog | Service is now disabled when RAMlog mode is not selected: https://github.com/Fourdee/DietPi/issues/1924

**Bug Fixes:**

General | Resolved an issue where cron jobs, containing DietPi scripts, failed: https://github.com/Fourdee/DietPi/issues/1923

General | Resolved an issue on ARM64 + Jessie with APT, due to debian-security removing suppport and packages for those devices. If you experience this issue, and are unable to update DietPi, please see : https://github.com/Fourdee/DietPi/issues/1915

General | Resolved an issue where NFSv3 network drives could not be mounted: https://github.com/Fourdee/DietPi/issues/1898

DietPi-Config | ASUS TB: Resolved loss of WiFi device after a reboot: https://github.com/Fourdee/DietPi/issues/1760

DietPi-Drive_Manager | Resolved an issue where the program could remove a non-empty directory in rare situations.

DietPi-Software | Resolved a potential Mono instability issue with Radarr, Sonarr and Jackett, due to using '--optimize=all --server'. This has now been removed for new installations. Many thanks to @hellfirehd for debugging/testing and @Taloth for dev insights: https://github.com/Fourdee/DietPi/issues/1896

DietPi-Software | Mono: Temp mono files are now cleared from memory once installed, preventing out of memory errors for additional software installs afterwards: https://github.com/Fourdee/DietPi/issues/1877#issuecomment-403856446

DietPi-Software | Xserver: Resolved rarely occuring uninstall issus by not purging dependencies, but leaving them for autoremove: https://github.com/Fourdee/DietPi/issues/1921

DietPi-Software | MineOS: Resolved failed installation due to incompatibilities with nodejs v10. v8 is now installed: https://github.com/Fourdee/DietPi/issues/1880

DietPi-Update | Resolved an issue where incorrect version would be displayed, once update was completed. This is due to '| tee' on a function, making var changes local: https://github.com/Fourdee/DietPi/issues/1877#issuecomment-403866204
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARMv8 External bug 🐞 For bugs which are not caused by DietPi. Jessie Solution available 🥂 Definite solution has been done
Projects
None yet
Development

No branches or pull requests

5 participants