0

I'm really tired of getting this error;

Xubuntu E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried sudo apt-get -f install, apt install -f and sudo apt --fix-broken install AND THEY DIDN'T WORK. I'M DRIVING CRAZY BECAUSE OF THIS ERROR AND THIS ERROR IS NOT THE ONLY ERROR.

dpkg: warning:the file listing the files of the package 'libwayland-client0: i386' could not be found; it is assumed that the package does not already have any files

That's all i need a solution to this problem.

tokmaq
  • 9
  • At first try sudo apt-get install --reinstall libwayland-client0:i386 . – N0rbert Aug 11 '21 at 07:42
  • Also, if that doesn’t work, sudo apt update && sudo apt clean before trying your install command. – galexite Aug 11 '21 at 07:59
  • sudo apt-get install --reinstall libwayland-client0:i386 and sudo apt update && sudo apt clean didn't work. 'libwayland-client0: i386' wasn't the only broken package.There is a lot more broken package like that. – tokmaq Aug 11 '21 at 08:30
  • E: The Release file does not exist in the 'http://ppa.launchpad.net/gezakovacs/ppa/ubuntu hirsute Release' store.N: Such a repository cannot be safely updated, so the repository is disabled.N: For detailed information about depot creation and user configuration, it can be found on the apt-secure(8) guide page.E: There is no Release file in the 'http://ppa.launchpad.net/wireshark-dev/stable/ubuntu release' store.N: Such a repository cannot be safely updated, so the repository is disabled.N: For detailed information about depot creation and user configuration, see the apt-secure(8) guide page – tokmaq Aug 11 '21 at 08:31
  • thats what i get after sudo apt update && sudo apt clean. – tokmaq Aug 11 '21 at 08:32
  • Deactivate both ppa's that are mentioned in your last comment. Both have no packages for your distro release. – nobody Aug 12 '21 at 09:45
  • @nobody how can i deactive? – tokmaq Aug 12 '21 at 09:48
  • https://askubuntu.com/questions/307/how-can-ppas-be-removed I would prefer ppa-purge. – nobody Aug 12 '21 at 09:51
  • Thanks but it says;
    Unable to handle repository shortcut 'ppa:/ppa.launchpad.net/gezakovacs/ppa/ubuntu hirsute Release'```
    
    – tokmaq Aug 12 '21 at 09:58
  • IM STUCK ON THIS FRICKING OS AND I CANT GET OUT. I TRIED EVERYTHING DUDE. E V E R Y T H I N G. IM DRIVING CRAZY – tokmaq Aug 12 '21 at 10:50
  • Oh come on first think then type. You added this ppa's not ubuntu. sudo apt install ppa-purge (i hope it is working). sudo ppa-purge ppa:gezakovacs/ppa and sudo ppa-purge ppa:wireshark-dev/stable – nobody Aug 12 '21 at 11:27
  • @nobody while i'm installing ppa purge i got unmet dependencies error.I tried to fix them on Synaptic but didn't work again.Now all i want is how can i install a operating system without any usb or dvd (except unetbootin because of the broken packages it didn't work on my pc) – tokmaq Aug 12 '21 at 19:49
  • Make a backup from your data! and add ls -al /etc/apt/sources.list.d/ to your question you can edit it. – nobody Aug 12 '21 at 19:52
  • I don't need a backup.and what is this? tokmaq@root:~$ ls -al /etc/apt/sources.list.d/ total 16 drwxr-xr-x 2 root root 4096 Ağu 12 13:30 . drwxr-xr-x 7 root root 4096 Ağu 5 17:35 .. -rw-r--r-- 1 root root 148 Ağu 12 13:30 nilarimogard-ubuntu-webupd8-hirsute.list -rw-r--r-- 1 root root 148 Ağu 12 13:30 wireshark-dev-ubuntu-stable-hirsute.list – tokmaq Aug 12 '21 at 19:55

1 Answers1

0
sudo rm /etc/apt/sources.list.d/ wireshark-dev-ubuntu-stable-hirsute.list 

restore default repository

Then run

sudo apt update

when apt is not complaining then try to run

sudo dpkg --configure -a

NO error so far?

sudo apt -f install && sudo sudo apt full-upgrade 

Oh need no backup? So you have no important datas :(

nobody
  • 5,437