For the past week, I have been facing this issue, for many packages that I try to install from apt
.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package **package_name** is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
This issue is with every package.
Just to mention. I have tried all the solution that has been mentioned here "But is referred to by another package." - Finding that package.
But nothing is working. I am really stuck with this package thing. My system.
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libwxgtk3.0-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libwxgtk3.0-dev' has no installation candidate
sudo apt policy package_name
. Also, check your/etc/apt/sources.list
. – pLumo Oct 05 '21 at 17:03/etc/apt/sources.list
do ? . I have opened it. It contains the repo links I guess – Ryednap Oct 05 '21 at 17:12sudo apt policy libwxgtk3.0-dev
is thisibwxgtk3.0-dev: Installed: (none) Candidate: (none) Version table
– Ryednap Oct 05 '21 at 17:13apt-get install gawk m4 libwxgtk3.0-dev libpcre2-dev libxerces-c-dev libspdlog-dev libuchardet-dev libssh-dev libssl-dev libsmbclient-dev libnfs-dev libneon27-dev libarchive-dev cmake g++ git
– Ryednap Oct 05 '21 at 17:18focal
you havelibwxgtk3.0-gtk3-dev
, not sure if it is the same. So the project documentation is for 18.04 maybe – pLumo Oct 05 '21 at 17:18sudo apt-get update
butlibwxgtk3.0-dev
is still showing this error – Ryednap Oct 05 '21 at 17:1920.04
– Ryednap Oct 05 '21 at 17:20libwxgtk3.0-dev
is not available for20.04
, so it is not working is normal. Trylibwxgtk3.0-gtk3-dev
. But you might need to enableuniverse
repository:sudo apt-add-repository universe
before, because that is not enabled by default I think. – pLumo Oct 05 '21 at 17:20universe
added – Ryednap Oct 05 '21 at 17:22