Score:1

Unmet dependencies errors showing up whenever trying to install or uninstall any application

my flag

Every time I try to install or purge the app, Konsole throws the error of Unmet Dependencies. For example, if I try sudo apt-get purge google-chrome-stable

It throws these errors

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
 app-outlet : Depends: flatpak but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

If I try to run, sudo apt-get install flatpak it again throws some errors

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
 flatpak : Depends: libappstream-glib8 (>= 0.6.1) but it is not going to be installed
           Depends: libostree-1-1 (>= 2019.6) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I even tried the purposed solution from terminal sudo apt --fix-broken install and it again throws the error

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
 app-outlet : Depends: flatpak but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I tried sudo apt update and it throws these errors

E: The repository 'http://ppa.launchpad.net/george-edison55/nitroshare/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/noobslab/apps/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://deb.etcher.io/dists/stable/InRelease  403  Forbidden [IP: 54.148.26.147 443]
E: The repository 'https://deb.etcher.io stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

My System/Distribution Specifications are:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

I ran grep -ir "^deb" /etc/apt/ --include=*.list

/etc/apt/sources.list.d/maarten-fonville-ubuntu-android-studio-focal.list:deb http://ppa.launchpad.net/maarten-fonville/android-studio/ubuntu focal main
/etc/apt/sources.list.d/balena-etcher.list:deb https://deb.etcher.io stable etcher
/etc/apt/sources.list.d/protonvpn-stable.list:deb [signed-by=/usr/share/keyrings/protonvpn-stable-archive-keyring.gpg] https://repo.protonvpn.com/debian stable main
/etc/apt/sources.list.d/kdenlive-ubuntu-kdenlive-stable-focal.list:deb http://ppa.launchpad.net/kdenlive/kdenlive-stable/ubuntu focal main
/etc/apt/sources.list.d/freedownloadmanager.list:deb [arch=amd64] https://debrepo.freedownloadmanager.org/ bionic main
/etc/apt/sources.list.d/dawidd0811-ubuntu-neofetch-focal.list:deb http://ppa.launchpad.net/dawidd0811/neofetch/ubuntu focal main
/etc/apt/sources.list.d/slack.list:deb https://packagecloud.io/slacktechnologies/slack/debian/ jessie main
/etc/apt/sources.list.d/google-chrome.list:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/micahflee-ubuntu-ppa-focal.list:deb http://ppa.launchpad.net/micahflee/ppa/ubuntu focal main
/etc/apt/sources.list.d/persepolis-ubuntu-ppa-focal.list:deb http://ppa.launchpad.net/persepolis/ppa/ubuntu focal main
/etc/apt/sources.list.d/agornostal-ubuntu-ulauncher-focal.list:deb http://ppa.launchpad.net/agornostal/ulauncher/ubuntu focal main
/etc/apt/sources.list.d/linuxuprising-ubuntu-shutter-focal.list:deb http://ppa.launchpad.net/linuxuprising/shutter/ubuntu focal main
/etc/apt/sources.list.d/teamviewer.list:deb https://linux.teamviewer.com/deb stable main
/etc/apt/sources.list.d/system76-dev-ubuntu-stable-focal.list:deb http://ppa.launchpad.net/system76-dev/stable/ubuntu focal main
/etc/apt/sources.list.d/system76-dev-ubuntu-stable-focal.list:deb-src http://ppa.launchpad.net/system76-dev/stable/ubuntu focal main
/etc/apt/sources.list:deb http://pk.archive.ubuntu.com/ubuntu/ focal main restricted
/etc/apt/sources.list:deb http://pk.archive.ubuntu.com/ubuntu/ focal-updates main restricted
/etc/apt/sources.list:deb http://pk.archive.ubuntu.com/ubuntu/ focal universe
/etc/apt/sources.list:deb http://pk.archive.ubuntu.com/ubuntu/ focal-updates universe
/etc/apt/sources.list:deb http://pk.archive.ubuntu.com/ubuntu/ focal multiverse
/etc/apt/sources.list:deb http://pk.archive.ubuntu.com/ubuntu/ focal-updates multiverse
/etc/apt/sources.list:deb http://pk.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security universe
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security multiverse
/etc/apt/sources.list:deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main

in flag
Have you run `sudo apt --fix-broken install` as the message suggests?
N0rbert avatar
zw flag
Please run `sudo apt update` and add possible error output to the question.
my flag
@matigo updated the question
my flag
@N0rbert updated the question.
N0rbert avatar
zw flag
Please execute `grep -ir "^deb" /etc/apt/ --include=*.list` command and add its output to question.
my flag
@N0rbert updated!
Score:1
zw flag

So you have many broken repositories.

To remove them from system use commands below:

sudo add-apt-repository -r ppa:george-edison55/nitroshare
sudo add-apt-repository -r ppa:noobslab/apps
sudo add-apt-repository -r "deb https://deb.etcher.io stable etcher"
sudo rm /etc/apt/sources.list.d/balena-etcher.list

then switch to main ubuntu mirror by

sudo sed -i "s/pk.//g" /etc/apt/sources.list

and then update package lists by

sudo apt-get update

Then install all upgrades by

sudo apt-get dist-upgrade

to get all new dependencies installed.

my flag
Done all of them steps but still getting same errors on ```sudo apt-get update``` :(
N0rbert avatar
zw flag
Run `sudo rm /etc/apt/sources.list.d/balena-etcher.list` and then `sudo apt-get update`. On any errors please update question contents.
my flag
Done that, and now ```sudo apt-get update``` doesn't throw any errors. But still not able to install/purge any apps, throws same unmet dependencies error.
N0rbert avatar
zw flag
Please try to switch to main ubuntu mirror by `sudo sed -i "s/pk.//g" /etc/apt/sources.list` and then run `sudo apt-get update` followed by `sudo apt-get dist-upgrade` to get all new dependencies installed.
my flag
```sudo apt --fix-broken dist-upgrade``` did the job and now everything working fine. Thank you so much.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.