pi-apps icon indicating copy to clipboard operation
pi-apps copied to clipboard

rpi 5 with raspberry pi os 64bit failed to install wine(x64)

Open ugawahm opened this issue 1 year ago • 5 comments

Confirmations

  • [X] I searched for similar bug reports in https://github.com/Botspot/pi-apps/issues and found none were relevant.
  • [x] I tried updating Pi-Apps and the issue is still not fixed. How to update Pi-Apps?
  • [X] IMPORTANT: I promise to respond to comments on this issue and write a good bug report https://www.softwaretestinghelp.com/how-to-write-good-bug-report/

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 avatar May 25 '24 13:05 ugawahm

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.

github-actions[bot] avatar May 25 '24 13:05 github-actions[bot]

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.

Botspot avatar May 25 '24 14:05 Botspot

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

ugawahm avatar May 25 '24 15:05 ugawahm

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

Botspot avatar May 25 '24 15:05 Botspot

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

ugawahm avatar May 25 '24 16:05 ugawahm

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. https://github.com/Botspot/pi-apps/blob/fa056cbcbe076d9be7d17e2767bca1a6edd18351/api#L2200-L2204

theofficialgman avatar May 26 '24 14:05 theofficialgman

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

theofficialgman avatar Jul 15 '24 20:07 theofficialgman