Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I'm having a problem with apt-get. I'm trying to install gsoap, typing
apt-get install gsoap
but I'm getting
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:
libc6-dev : Breaks: gcc-4.4 (< 4.4.6-4) but 4.4.5-8 is to be installed
E: Broken packages
Question 1: can someone translate this into English?
I tried running apt-get -f install, but all it said was "0 upgraded, 0 newly installed, 0 to remove and 1153 not upgraded".
This is really frustrating. I know dependency management is a hard problem, but I thought it was the job of a tool like apt-get to solve that problem for me. In this case it feels like there's something it's decided it can't do, and it's expecting me to resolve it, but it's telling me what's wrong using language which I frankly do not understand.
Question 2: is there something I could read to help me understand apt's dependency management philosophy, so I could maybe understand what's going on here?
If I should be asking these questions somewhere else let me know.
Addendum: per the Debian bug report linked to by mertyildiran, there was definitely a dependency problem involving gcc-4.4 and squeeze (which is in fact what I'm running). That bug claims to be fixed, but somehow the fix isn't helping me.
I suspect it may be time to ask Question 3: Is there a way to hand-edit the dependency list to make this problem go away? That's a terrible idea, I know, but at this point that may be my only choice other than blowing away the whole machine and reinstalling squeeze or wheezy from scratch, and that's a daunting prospect.
Run the following command
sudo apt install aptitude && sudo aptitude install gsoap
It might be that #JosephWorks' solution
sudo apt install aptitude && sudo aptitude install gsoap
actually helps with
Question 3: Is there a way to hand-edit the dependency list to make this problem go away?
Aptitude offers several configuration/downgrading options that installs the package you wish for. You can list the different options with n and choose one with Y.
This solution has been reported in several forums:
sudo apt-get clean && apt-get update
sudo apt-get install -f
sudo apt-get install gsoap
Sources:
http://forums.debian.net/viewtopic.php?f=5&t=70540
http://www.linuxforums.org/forum/debian-linux/182874-apt-get-install-complains-broken-packages.html
Debian Bug report about the issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676483
Explanation:
Let's see the functionality of clean argument with man apt-get:
clean
clean clears out the local repository of retrieved package files. It removes everything but the lock file from
/var/cache/apt/archives/ and /var/cache/apt/archives/partial/.
Simply clean will reset your local package index so you can update your package index in most clean way.
I believe you have made a dist-upgrade in the past or manually edited your /etc/apt/sources.list. Maybe a PPA(Personal Package Archive) that you have used caused this problem.
If the error persists:
Compile and Install gcc-4.4.5
Download gcc-4.4.5: http://www.netgull.com/gcc/releases/gcc-4.4.5/gcc-4.4.5.tar.gz
tar -zxvf gcc-4.4.5.tar.gz
cd gcc-4.4.5/
./configure
make
sudo make install
sudo apt-get install gsoap
Probably you have an old distro. Ubuntu 16.04 comes with gcc-5.4.0. Installing gcc-4.4.5 should solve the problem.
#Steve You wanna try this ?
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
When I'm running this code in Bash:
sudo apt-get install -y python-gi-cairo
I get this message från Bash:
"Some packages could not be installed. This may mean that you have requested an impossible situation, or if you are using an unstable distribution that some required packages have not yet been created or been moved out of Incomming.
The following information may help to solve the situation:
The following packages have unmet dependencies:
python-gi-cairo : Depends: python-gi (= 3.36.0-3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages."
I'm using a Raspberry pi3
What I have done before I tried to install python-gi-cairo:
Downloaded and installed missing keys for APT.
Updated APT
Grateful for help /Felix
Seems like the default Python is 2.7.
No worries I had the same issue.
But Fixed it with python3.
Try:
sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0
Let me know if it works!
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I've recently installed Ubuntu version 18.04 LTS and just started to learn to use use linux and terminal. I want to install mongodb. I'm following the steps from this website.
i ran the following lines in the terminal
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
after i run the fourth line the following appears
tasif#Tasif-Dell:/$ sudo apt-get install -y mongodb-org
[sudo] password for tasif:
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:
mongodb-org : Depends: mongodb-org-server but it is not going to be
installed
E: Unable to correct problems, you have held broken packages.
Then when i want to start mongodb the following message is displayed
tasif#Tasif-Dell:/$ sudo service mongod start
[sudo] password for tasif:
Failed to start mongod.service: Unit mongod.service not found.
installing libcurl3 fixed it for me
sudo apt install libcurl3
Unfortunately, there's no non-development release of MongoDB for 18.04 yet. (Current as of 2018-07-12)
https://repo.mongodb.org/apt/ubuntu/dists/bionic/ shows that there's only a dev release.
Your specific problem is that you are not installing all the dependencies for Mongo, which can probably be fixed with:
sudo apt-get install -f
Per this ask Ubuntu answer.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I have installed Debian Testing on my laptop. Usually I upgrade my system with the following commands: First sudo apt-get update and second sudo apt-get dist-upgrade. Usually this works perfectly, but yesterday, when I wanted to invoke the dist-upgrade command, apt stated that this command would remove the following packages
kde-config-touchpad kde-plasma-desktop kde-standard kio-extras libgl2ps0
plasma-desktop
The problem is that removing the kde-plasma-desktop would uninstall my whole desktop environment. Now the questions arises, why apt wants to do this. I've already heard that one has to be careful with apt-get dist-upgrade but I'm still surprised. What is the reason that apt marks kde-plasma-desktop as a package to remove and what can I do to tell apt that kde-plasma-desktop is important? Is it an error in the database of apt or is it related with other packages which shall be updated?
Example:
Package A in version 1 depends on package libB in version 1. Now both packages receive an upgrade and it can happen that the package libB upgrade arrives in Testing earlier than the package A upgrade. So the dependency for package A v1 (libB v1) is marked for removal leaving package A with a missing dependency. Hence it will also be marked for removal.
That's business as usual in Sid and also happens once in a while in Testing. Usually the version 2 upgrade of package A will also arrive within a few days and all is good again but still: that's Testing. Being careful is mandatory.
With bigger dependency trees things can become more complicated. If there is a package C that also depends on libB v1 but does not have a new version based on B v2, then either libB v1 and v2 can be made co-installable or C has to be removed from the package archive.
In KDE lots of things are moved around currently. KF5 is way more modular than KDE4 and modules are added/removed/moved around as needed.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I've tried to install android-studio via apt-get in Ubuntu and find that a dependency package with a size of 233 M is required to download from Google. Since I'm in China the network condition is so bad that I cannot download the package completely, and finally I have to give up.
However here comes a problem: now every time I execute apt-get I will get a hint of Incomplete dependency and be asked to download the package above. If I execute sudo apt-get remove android-studio an error will occur:
dpkg: error processing package android-studio (--remove):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
An error occurred when processing:
android-studio
E: Sub-process /usr/bin/dpkg returned an error code (1)
My apt-get was stuck. So how can I remove an incomplete package entirely?
Try running following commands on the terminal:
sudo apt-get autoremove
sudo apt-get --purge remove
sudo dpkg --remove --force-remove-reinstreq tspc
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get -f install
These may clear or fix broken packages and try to install again.
Open synaptic Install synaptic. Then go to status and choose Broken. Then remove completely the broken packages.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I'm using Linux Mint 11 64 bit. I needed some packages to install newest software and found them in ubuntu repositories.
To do this I added
deb http://security.ubuntu.com/ubuntu oneiric-security main
deb http://ubuntu.mirror.cambrium.nl/ubuntu/ oneiric main
to my
/etc/apt/sources.list.
I made automatically sudo apt-get update + sudo apt-get upgrade and it installed ~900 packages from that repository (and removed some of my Mint too...). My system changed to Ubuntu-like dist, installed new graphical interface - probably GNOME3 (I liked my GNOME2 really much..). I am now unable to start GNOME2 at all.
Is there any way to undo this changes? I've removed that lines from sources.list, tried sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
but it didn't help.
Thanks.
You can use ppa-purge - install with sudo apt-get install ppa-purge
See this article for more info
That will roll back your packages so it is safe to remove the repo and keep the software and your system wont blow up.
EDIT (based on user1131467's comment): for full-blown repositories, these answers will help, but it is much more manual:
https://askubuntu.com/a/3675/38901 and
https://superuser.com/a/195071/110574
No sorry, you are pretty screwed. You now have newer versions of most of the packages, so even if you remove the oneiric repo it will still opt to keep the new ones.
The best option is to backup and reinstall.