emacs27 : Depends: emacs27-common but it is not going to be installed - emacs

I has Emacs 25.3
emacs -version
GNU Emacs 25.3.2
Copyright (C) 2017 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
I want to install on my Linux Mint 19.6 the Git. So I try this:
sudo apt install git
But I get 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:
emacs27 : Depends: emacs27-common but it is not going to be installed
git : Depends: git-man (> 1:2.29.2) but 1:2.27.0-1~ppa0~ubuntu18.04.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
I always get this error if I want to install any package.
E.g.
sudo apt-get install libcurl4-openssl-dev
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:
emacs27 : Depends: emacs27-common but it is not going to be installed
libcurl4-openssl-dev : Depends: libcurl4 (= 7.58.0-2ubuntu3.12) but 7.58.0-2ubuntu3.9 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Related

I'm having trouble running apt-get upgrade after installing all of the tools from Katoolin3

I installed katoolin3 in my Ubuntu 22.04 LTS Jammy release. I can't run the "sudo apt-get upgrade" command, and I can't fix the problem with "sudo apt --fix-broken install."
Whenever I am trying to do an "apt-get upgrade," it is giving me this error.
# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libgl1-mesa-dri : Depends: libglapi-mesa (= 22.0.5-0ubuntu0.3) but 22.3.2-1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
And whenever I try "apt --fix-broken install" again, I get this error.
# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
libgl1-mesa-dri : Depends: libglapi-mesa (= 22.0.5-0ubuntu0.3) but 22.3.2-1 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
 And whenever I am trying to run "dpkg --remove libglapi-mesa," I get this error
# dpkg --remove libglapi-mesa
dpkg: dependency problems prevent removal of libglapi-mesa:amd64:
libosmesa6:amd64 depends on libglapi-mesa (= 22.3.2-1).
libglx-mesa0:amd64 depends on libglapi-mesa (= 22.3.2-1).
libgl1-mesa-dri:amd64 depends on libglapi-mesa (= 22.0.5-0ubuntu0.3).
libgl1-amber-dri:amd64 depends on libglapi-mesa (>= 21.3.5).
libegl-mesa0:amd64 depends on libglapi-mesa (= 22.3.2-1).
dpkg: error processing package libglapi-mesa:amd64 (--remove):
dependency problems - not removing
Errors were encountered while processing:
libglapi-mesa:amd64
Please help.

unfinished installation of pgadmin4 keeps blocking other installations

I have been trying to install pgAdmin4 but I get this error below, I tried to resolve the error and I couldn't, so I decided to go on with my installations, then I tried Mongodb, it also can't install
sudo apt-get install -y mongodb-org=4.4.2 mongodb-org-server=4.4.2 mongodb-org-shell=4.4.2 mongodb-org-mongos=4.4.2 mongodb-org-tools=4.4.2
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:
mongodb-org-tools : Depends: mongodb-database-tools but it is not going to be installed
Depends: mongodb-org-database-tools-extra but it is not going to be installed
pgadmin4 : Depends: pgadmin4-web but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
I have tried:
sudo apt --fix-broken install
but still no positive yields as the error persists
How can I fully remove pgAdmin, I mean anything related to postgres, so that I re install a new fresh bundle.
The problem was with my dpkg config. but this helped me out
https://itectec.com/ubuntu/ubuntu-how-to-remove-install-a-package-that-is-not-fully-installed/

install postgresql on ubuntu 19.10

I'm trying to install postgresql on ubuntu 19.10 (Eoan). I've tried many ways but it seems that even the newest version of postgresql (12) is not supported.
Does anyone know if it can be installed in some way?
this is the error I get when I'm trying to install, for example, postgresql 11:
$ sudo apt-get install postgresql-11
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
postgresql-11 : Depends: postgresql-client-11
Depends: libicu55 (>= 55.1-1~) but it is not installable
Depends: libpq5 (>= 9.3~) but it is not going to be installed
Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
Recommends: sysstat but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Try this:
https://askubuntu.com/a/1074728
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt-get update
sudo apt-get install libicu55

Not able to download the mongodb dependencies

Getting the below error tried every command to download the dependency but still not able to download it
Please refer to the log here. These are the logs for installing mongodb by using the command sudo apt-get install mongodb
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:
mongodb : Depends: mongodb-server (>= 1:2.4.1-2) but it is not going to be installed
mongodb-org : Depends: mongodb-org-server but it is not going to be installed
Depends: mongodb-org-mongos but it is not going to be installed
Depends: mongodb-org-tools but it is not going to be installed
Conflicts: mongodb but 1:3.6.3-0ubuntu1.1 is to be installed
mongodb-org-shell : Conflicts: mongodb but 1:3.6.3-0ubuntu1.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

how to resolve unmet dependencies in ubuntu(16.04)?

i install libstdc++.so.6.0.9 then after this my ubuntu give this error
latitude$sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libstdc++6 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.9) but 5.4.0-6ubuntu1~16.04.5 is installed
E: Unmet dependencies. Try using -f.
And when I run
asad#asad-Latitude-E7440:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
libstdc++6 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.9) but 5.4.0-6ubuntu1~16.04.5 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
will sort your message for analyzing, met the same situation
$ sudo apt-get -f install
Reading package lists... Done Building dependency tree
Reading state information... Done Correcting dependencies... failed.
The following packages have unmet dependencies:
libstdc++6 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.9) but 5.4.0-6ubuntu1~16.04.5 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
at first, you can run the command
sudo dpkg --force-depends --remove libstdc++6
and then download the latest libstdc++6 and install it
BTW, you can search the latest libstdc++6 from the below link? https://launchpad.net/ubuntu/xenial/amd64?text=libstdc%2B%2B6
wget http://launchpadlibrarian.net/385645739/libstdc++6_5.4.0-6ubuntu1~16.04.11_amd64.deb
sudo dpkg --force-depends -i libstdc++6_5.4.0-6ubuntu1~16.04.11_amd64.deb
finally, you can run
sudo apt-get -f install
Thanks any one .My problem has solved.I m giving here for anyone who will have this problem. Solution is
sudo aptitude purge libstdc++6
Recently, I was trying to install an application on Ubuntu 18.04 where I faced this issue. I went through a lot of troubleshoots and finally, one of the methods helped me.
Once I got the dependency error, I used the command $sudo apt-get install aptitude. Then I installed the application through aptitude command. The syntax is
$sudo aptitude install app_name.
To my surprise, my required app got installed.
My doubt is that, will this method work for all the unmet dependencies error and for all applications?