Things should be installed.
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)
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/*
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.
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.
Having the same problem!
Please fix as I am no longer able to update Dietpi or any other piece of software in my Odroid.
@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
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.
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
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
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...
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?
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!
Successfully upgraded DietPi from 6.9 to 6.11 after having removed the offending line.
Thanks for your support on this!
@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 ๐ค.
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 .
@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 directoryls -l
to see the content of this directory, "sources.list" should show up as wellnano sources.list
to edit the file with "nano" command line editordeb http://deb.debian.org/debian-security/ jessie/updates main contrib non-free
via arrow keys.<ctrl>
+<k>
to cut (and by this remove) the line.<ctrl>
+<o>
to safe changes.<return>
to affirm.<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.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
Any ideas on what is wrong ?
@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
@MichaIng
Its back up and running, it runs on the older MVS account system, Paypal payments are manual. Error my end:
Thanks to both , I have now updated to 6.11
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.
@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 ๐ค.
sed -i '/debian-security/d' /etc/apt/sources.list
G_AGUP
@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% /
Completed.
Most helpful comment
Thanks to both , I have now updated to 6.11