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

incorrect error diagnosis #2596

Closed
3 tasks done
ugawahm opened this issue May 25, 2024 · 7 comments
Closed
3 tasks done

incorrect error diagnosis #2596

ugawahm opened this issue May 25, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@ugawahm
Copy link

ugawahm commented May 25, 2024

Confirmations

What happened?

wine(x64) can't be installed

Description

I tried to use pi-apps to install wine(x64), but failed. The information that pops up when the error occurs is as follows:

Packages failed to install because you seem to have deleted or altered an important repository file in /etc/apt/sources.list.d
This error-dialog appeared because /etc/apt/sources.list.d/raspi.list is missing or altered, but you may have deleted other files as well.
The raspi.list file should contain this:
deb http://archive.raspberrypi.com/debian/  main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.com/debian/  main

And I haven't modified raspi.lit file before.
the content in the file:

deb http://archive.raspberrypi.com/debian/ bookworm main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.com/debian/ bookworm main

Finally, here is the log file:
log.txt

What are your system specs (run the following command in your terminal)?

OS: Debian GNU/Linux 12 (bookworm)
OS architecture: 64-bit
Last updated Pi-Apps on: 05/25/2024
Latest Pi-Apps version: 05/25/2024
Kernel: aarch64 6.6.28+rpt-rpi-v8
Device model: Raspberry Pi 5 Model B Rev 1.0
SOC identifier: bcm2712
Cpu name: Cortex-A76
Ram size: 7.94 GB
Raspberry Pi OS image version: 2024-03-15
Language: en_US.UTF-8

(Recommended) Error log? Terminal output? Debug messages?

Packages failed to install because you seem to have deleted or altered an important repository file in /etc/apt/sources.list.d
This error-dialog appeared because /etc/apt/sources.list.d/raspi.list is missing or altered, but you may have deleted other files as well.
The raspi.list file should contain this:
deb http://archive.raspberrypi.com/debian/  main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.com/debian/  main
@ugawahm ugawahm added the bug Something isn't working label May 25, 2024
Copy link
Contributor

Hello there 👋
Thanks for submitting your first issue to the Pi-Apps project! We'll try to get back to you as soon as possible.
In the meantime, we encourage you join our Discord server, where you can ask any questions you might have.

Please respond as soon as possible if a Pi-Apps maintainer requests more information from you. Stale issues will be closed after a lengthy period of time with no response.

@Botspot
Copy link
Owner

Botspot commented May 25, 2024

This is strange.
Here is the code that was responsible for giving you this error:

#if RPi OS, check for /etc/apt/sources.list.d/raspi.list
  if [ -f /etc/rpi-issue ] && ( [ ! -f /etc/apt/sources.list.d/raspi.list ] || ! grep -q "^deb http://archive.raspberrypi.org/debian\|^deb https://archive.raspberrypi.org/debian\|^deb http://archive.raspberrypi.com/debian\|^deb https://archive.raspberrypi.com/debian" /etc/apt/sources.list.d/raspi.list ) ;then
    error_caption+=("Packages failed to install because you seem to have deleted or altered an important repository file in /etc/apt/sources.list.d

This error-dialog appeared because /etc/apt/sources.list.d/raspi.list is missing or altered, but you may have deleted other files as well.
The raspi.list file should contain this:

deb http://archive.raspberrypi.com/debian/ $(get_codename) main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.com/debian/ $(get_codename) main")
    error_type="system"
  fi

It seems that this should not be able to be triggered, based on what you say is in the file.

@ugawahm
Copy link
Author

ugawahm commented May 25, 2024

@Botspot Sorry to bother you, I finally solved the problem by changing my network configuration, this seems to be my personal problem.

@Botspot
Copy link
Owner

Botspot commented May 25, 2024

Yes, the cause of the issue was network related, but still, pi-apps somehow completely mis-diagnosed the error here.
Proper behavior here is for pi-apps to suggest you fix your network configuration.

Could you copy this code into a terminal,, press enter, and send back what the output is?

if [ -f /etc/rpi-issue ] && ( [ ! -f /etc/apt/sources.list.d/raspi.list ] || ! grep -q "^deb http://archive.raspberrypi.org/debian\|^deb https://archive.raspberrypi.org/debian\|^deb http://archive.raspberrypi.com/debian\|^deb https://archive.raspberrypi.com/debian" /etc/apt/sources.list.d/raspi.list ) ;then
  echo bad sources
else
  echo good sources
fi

@ugawahm
Copy link
Author

ugawahm commented May 25, 2024

@Botspot OK, the output is shown in the screenshot.
image

@theofficialgman
Copy link
Collaborator

theofficialgman commented May 26, 2024

Packages failed to install because you seem to have deleted or altered an important repository file in /etc/apt/sources.list.d
This error-dialog appeared because /etc/apt/sources.list.d/raspi.list is missing or altered, but you may have deleted other files as well.
The raspi.list file should contain this:
deb http://archive.raspberrypi.com/debian/  main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.com/debian/  main

@Botspot This shouldn't cause that error report but a potential issue is, according to the output above, get_codename returned nothing.

pi-apps/api

Lines 2200 to 2204 in fa056cb

The raspi.list file should contain this:
deb http://archive.raspberrypi.com/debian/ $(get_codename) main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.com/debian/ $(get_codename) main")

@theofficialgman theofficialgman changed the title rpi 5 with raspberry pi os 64bit failed to install wine(x64) incorrect error diagnosis May 26, 2024
@theofficialgman
Copy link
Collaborator

I see no way to reproduce this alleged incorrect reported error diagnosis.
Closing unless someone else has the same issue in the future.

@theofficialgman theofficialgman closed this as not planned Won't fix, can't repro, duplicate, stale Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants