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

APT | Update fails due to missing binary-<arch> entry (binary-all only) #2724

Closed
aspinks opened this issue Apr 19, 2019 · 19 comments
Closed
Labels
Outside of DietPi scripts eg: user installed/configured software Solution available 🥂 Definite solution has been done

Comments

@aspinks
Copy link

aspinks commented Apr 19, 2019

i know this is old but i ran this:
wget https://raw.githubusercontent.com/Fourdee/DietPi/0f18aa4dc0af8ab910a0173dce8849d5b53c30b0/dietpi/func/dietpi-globals -O /DietPi/dietpi/func/dietpi-globals
now when i try to install it goes to the drive manager. i exit that and get this:
OK ] DietPi-Software | Installing Sonarr: automatically download TV shows
[ OK ] DietPi-Software | Free space check: path=/ | available=24428 MB | required=500 MB

then it goes to the command prompt.

@MichaIng
Copy link
Owner

MichaIng commented Apr 19, 2019

@aspinks
Uiii, this fix (Ref: #1923) is totally outdated. This was for v6.11 (fixed/implemented with v6.12), now we are on v6.22 and downloading a v6.11(comma 5) script (especially the globals) for sure breaks everything else (DietPi scripts) 😉.

Please reapply the current master version:

wget https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi/func/dietpi-globals -O /DietPi/dietpi/func/dietpi-globals
. /DietPi/dietpi/func/dietpi-globals

Then please retry installing Sonarr and paste the output of any error (or the whole dietpi-software output) here, so we can investigate.

@aspinks
Copy link
Author

aspinks commented Apr 19, 2019

thank you!, so that fixed that part but now i am back to my original problem. I tried to install filebot via command line earlier and now when I go to install sonar i get this error:

Details:

  • Date | Fri 19 Apr 17:35:10 CDT 2019
  • Bug report | N/A
  • DietPi version | v6.22.3 (Fourdee/master)
  • Img creator | n/a
  • Pre-image | n/a
  • SBC device | Native PC (x86_64) (index=21)
  • Kernel version | Fix warning when running scp over openssh-server #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04)
  • Distro | stretch (index=4)
  • Command | G_AGUP
  • Exit code | 100
  • Software title | DietPi-Software

Steps to reproduce:

  1. ...running any software install
  2. ...

Expected behaviour:

  • ...installing software

Actual behaviour:

  • ...

Extra details:

  • ...this happened once when i tried to install sonarr via dietpi-software. if fixed that by doing a clean install

Additional logs:

Log file contents:
Ign:1 https://get.filebot.net/deb universal-jdk8 InRelease
Get:2 https://get.filebot.net/deb universal-jdk8 Release [1,165 B]
Get:3 https://get.filebot.net/deb universal-jdk8 Release.gpg [587 B]
Get:4 https://get.filebot.net/deb universal-jdk8/main all Packages [547 B]
Ign:5 https://cdn-aws.deb.debian.org/debian stretch InRelease
Hit:6 https://cdn-aws.deb.debian.org/debian stretch-updates InRelease
Hit:7 https://cdn-aws.deb.debian.org/debian-security stretch/updates InRelease
Hit:8 https://cdn-aws.deb.debian.org/debian stretch-backports InRelease
Hit:9 https://cdn-aws.deb.debian.org/debian stretch Release
Fetched 2,299 B in 1s (1,413 B/s)
Reading package lists...
E: Failed to fetch https://get.filebot.net/deb/dists/universal-jdk8/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.

[FAILED] DietPi-Software | Unable to continue, DietPi-Software will now terminate.

@MichaIng
Copy link
Owner

@aspinks
Ah I see, the filebot APT repo fails like this. Reason is it does not contain an explicit binary-amd64 dir: https://get.filebot.net/deb/dists/universal-jdk8/main/
Not sure why APT throws an error if instead binary-all is present (like here), but it does. I found the info that universal/universal-jdk8 are actually made for Debain Buster and Ubuntu 18: https://www.filebot.net/forums/viewtopic.php?f=11&t=6028
Perhaps the APT version on Debian Buster (and Ubuntu 18) allow binary-all-only, but on Stretch it does not.

Please adjust the sources list entry like this: deb https://get.filebot.net/deb/ stable main
This branch contains the required binary-amd64 dir: https://get.filebot.net/deb/dists/stable/main/

@MichaIng MichaIng added the Outside of DietPi scripts eg: user installed/configured software label Apr 19, 2019
@MichaIng MichaIng changed the title cant install software on dietpi APT | Update fails due to missing binary-<arch> entry (binary-all only) Apr 19, 2019
@aspinks
Copy link
Author

aspinks commented Apr 19, 2019

first off thank you for the fast and great responses. I imagine i need github repository to do this. in my own efforts to fix this before i found your help i uninstalled github repository and cannot reinstall it. i get the same errors as listed above. how do i clear those out so i can get the repository and try installing filebot? this is what i get when i try to install github or anything at all:

Log file contents:
Ign:1 https://get.filebot.net/deb universal-jdk8 InRelease
Get:2 https://get.filebot.net/deb universal-jdk8 Release [1,165 B]
Get:3 https://get.filebot.net/deb universal-jdk8 Release.gpg [587 B]
Get:4 https://get.filebot.net/deb universal-jdk8/main all Packages [547 B]
Ign:5 https://cdn-aws.deb.debian.org/debian stretch InRelease
Hit:6 https://cdn-aws.deb.debian.org/debian stretch-updates InRelease
Hit:7 https://cdn-aws.deb.debian.org/debian-security stretch/updates InRelease
Hit:8 https://cdn-aws.deb.debian.org/debian stretch-backports InRelease
Hit:9 https://cdn-aws.deb.debian.org/debian stretch Release
Fetched 2,299 B in 1s (1,413 B/s)
Reading package lists...
E: Failed to fetch https://get.filebot.net/deb/dists/universal-jdk8/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.

@MichaIng
Copy link
Owner

@aspinks
Sorry for the late reply. Actually I already answered from module, but it seems to not have been posted... connection issue on the road...

I imagine i need github repository to do this.
...
this is what i get when i try to install github or anything at all:

What do you mean by "github" in this relation? Did you run some installer script from a GitHub repo?

However, you can leave things as they are, just as said, universal-jdk8 is no valid branch for Debian Stretch. Please do:

sed -i 's/universal-jdk8/stable/' /etc/apt/sources.list.d/*
G_AGUP

@aspinks
Copy link
Author

aspinks commented Apr 26, 2019

sorry for the delay, been out of town for work.

when i run sed -i 's/universal-jdk8/stable/' /etc/apt/sources.list.d/*
G_AGUP or any built in installer,

i get this:

─┤ DietPi Error Handler: ├──────────────────────────────
GUP
Exit code: 100
DietPi version: v6.22.3 (Fourdee/master) | HW_MODEL:21 | HW_ARCH:10 | DISTRO:4
Image creator: n/a
Pre-image: n/a

 file contents:
:1 https://get.filebot.net/deb stable InRelease
:2 https://get.filebot.net/deb stable Release [1,175 B]
:3 https://get.filebot.net/deb stable Release.gpg [587 B]
:4 https://cdn-aws.deb.debian.org/debian stretch InRelease
:5 https://cdn-aws.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
:6 https://cdn-aws.deb.debian.org/debian-security stretch/updates InRelease [94.

:7 https://cdn-aws.deb.debian.org/debian stretch-backports InRelease [91.8 kB]

 Retry         : Re-run the last command that failed
            DietPi-Config : Edit network, APT/NTP mirror settings etc

I exit that and it gives me this:

Details:

  • Date | Fri 26 Apr 17:17:06 CDT 2019
  • Bug report | N/A
  • DietPi version | v6.22.3 (Fourdee/master)
  • Img creator | n/a
  • Pre-image | n/a
  • SBC device | Native PC (x86_64) (index=21)
  • Kernel version | Fix warning when running scp over openssh-server #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04)
  • Distro | stretch (index=4)
  • Command | G_AGUP
  • Exit code | 100
  • Software title |

Steps to reproduce:

  1. ...trying to install anything at all
  2. ...

Expected behaviour:

  • ... it should install

Actual behaviour:

  • ... i get the error listed below

Extra details:

  • ...

Additional logs:

Log file contents:
Ign:1 https://get.filebot.net/deb stable InRelease
Get:2 https://get.filebot.net/deb stable Release [1,175 B]
Get:3 https://get.filebot.net/deb stable Release.gpg [587 B]
Ign:4 https://cdn-aws.deb.debian.org/debian stretch InRelease
Get:5 https://cdn-aws.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:6 https://cdn-aws.deb.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:7 https://cdn-aws.deb.debian.org/debian stretch-backports InRelease [91.8 kB]
Hit:8 https://cdn-aws.deb.debian.org/debian stretch Release
Get:9 https://cdn-aws.deb.debian.org/debian-security stretch/updates/main amd64 Packages [485 kB]
Get:10 https://cdn-aws.deb.debian.org/debian-security stretch/updates/main i386 Packages [486 kB]
Get:12 https://cdn-aws.deb.debian.org/debian stretch-backports/main i386 Packages.diff/Index [27.8 kB]
Get:13 https://cdn-aws.deb.debian.org/debian stretch-backports/main amd64 Packages.diff/Index [27.8 kB]
Get:14 https://cdn-aws.deb.debian.org/debian stretch-backports/main Translation-en.diff/Index [27.8 kB]
Get:15 https://cdn-aws.deb.debian.org/debian stretch-backports/main i386 Packages 2019-04-25-1416.16.pdiff [1,473 B]
Get:16 https://cdn-aws.deb.debian.org/debian stretch-backports/main i386 Packages 2019-04-25-2030.15.pdiff [3,177 B]
Get:16 https://cdn-aws.deb.debian.org/debian stretch-backports/main i386 Packages 2019-04-25-2030.15.pdiff [3,177 B]
Get:17 https://cdn-aws.deb.debian.org/debian stretch-backports/main amd64 Packages 2019-04-25-1416.16.pdiff [3,251 B]
Get:18 https://cdn-aws.deb.debian.org/debian stretch-backports/main amd64 Packages 2019-04-25-2030.15.pdiff [1,893 B]
Get:18 https://cdn-aws.deb.debian.org/debian stretch-backports/main amd64 Packages 2019-04-25-2030.15.pdiff [1,893 B]
Get:19 https://cdn-aws.deb.debian.org/debian stretch-backports/main Translation-en 2019-04-25-1416.16.pdiff [789 B]
Get:19 https://cdn-aws.deb.debian.org/debian stretch-backports/main Translation-en 2019-04-25-1416.16.pdiff [789 B]
Fetched 1,344 kB in 3s (339 kB/s)
Reading package lists...
E: Failed to fetch https://get.filebot.net/deb/dists/stable/InRelease  Unable to find expected entry 'main/binary-i386/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.

@MichaIng
Copy link
Owner

@aspinks

expected entry 'main/binary-i386/Packages'

Strange since your system is x86_64. We do add i386 arch to APT on x86 images but that only "allows" it but not "requires" i386 to be present. The required main/binary-amd64/Packages is there: https://get.filebot.net/deb/dists/stable/Release

However please try to remove the arch:

dpkg --remove-architecture i386
apt update

@aspinks
Copy link
Author

aspinks commented Apr 26, 2019

i think that may have worked, fingers crossed...

@MichaIng
Copy link
Owner

@aspinks
If apt update did not show any error now, it did. I will mark this issue as closed. However feel free to reopen if the issue persists.

@MichaIng MichaIng added Solution available 🥂 Definite solution has been done and removed Investigating 🤔 labels Apr 27, 2019
@aspinks
Copy link
Author

aspinks commented Apr 29, 2019

sorry to be a bother but i tried running

deb https://get.filebot.net/deb/ stable main

i get

-bash: deb: command not found

@MichaIng
Copy link
Owner

@aspinks
deb https://get.filebot.net/deb/ stable main is not a command but the desired content of the related file in the directory /etc/apt/sources.list.d/. But according to your output above (#2724 (comment)) this has already been applied by the sed ... command I posted before.

Does apt update still show some error like this (?):

E: Failed to fetch https://get.filebot.net/deb/dists/stable/InRelease  Unable to find expected entry 'main/binary-i386/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.

@aspinks
Copy link
Author

aspinks commented Apr 29, 2019

so when i run "apt update" i get no errors but this is what shows everytime.
Capture

@MichaIng
Copy link
Owner

@aspinks
Jep as expected.

There is one updated package available. You can update it via: G_AGUG

@aspinks
Copy link
Author

aspinks commented May 1, 2019

I ran G_AGUG and it upgraded but I am still getting the same read out as above.

@MichaIng
Copy link
Owner

MichaIng commented May 1, 2019

@aspinks
As said, this is the usual readout telling you about APT lists being updated. Everything is fine.

@aspinks
Copy link
Author

aspinks commented May 1, 2019

My apologies, I misunderstood. I am still learning linux. So does this mean filebot is installed? Is it possible to run it on the gui? I am using mate as the desktop. Again thank you for all the help

@MichaIng
Copy link
Owner

MichaIng commented May 1, 2019

@aspinks
Ah sorry no since the APT list update failed, of course not 🙈.

Do:

apt install filebot

@aspinks
Copy link
Author

aspinks commented May 1, 2019

so i ran that and thought i had it but got the following
filebot

@MichaIng
Copy link
Owner

MichaIng commented May 1, 2019

@aspinks
Ah yeah the still remaining APT issue with Java + ca-certificates-java. Should be resolved with:
apt -f install

Ah wait, actually this issue did only occur on ARM devices 🤔. However this was with Java 8 and you install Java 11. Try the above.


Just checked the related issue: #2524
In case the above still throws an error:

update-ca-certificates
dpkg --configure ca-certificates
dpkg --configure ca-certificates-java
dpkg --configure openjdk-11-jre-headless
dpkg --configure openjdk-11-jre
dpkg --configure filebot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Outside of DietPi scripts eg: user installed/configured software Solution available 🥂 Definite solution has been done
Projects
None yet
Development

No branches or pull requests

2 participants