Problem with installing python-gi-cairo on Linux [closed] - linux

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!

Related

Package 'libpng12-0' has no installation candidate Ubuntu 18.0.4 [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I'm trying to install WPS office and it depends on libpng12-0 which I can't install due to "Package 'libpng12-0' has no installation candidate
". I'm running Ubuntu 18.0.4 LTS.
... trying to install WPS office and it depends on libpng12-0
You can use the Ubuntu 16.04 package http://se.archive.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb
Download, and install ...
sudo gdebi Downloads/libpng12-0_1.2.54-1ubuntu1_amd64.deb

apt-get can't install (dependency conflicts?) [closed]

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

Ubuntu - Unable to correct problems, you have held broken packages [closed]

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 7 years ago.
Improve this question
I've searched the solution but so far I did not get the right one I can apply.
Host: Ubuntu 14.04
when I typed the following command,
sudo apt-get install libxtst-dev:i386
I got the following error message:
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:
libxtst-dev:i386 : Depends: libxext-dev:i386 but it is not going to be installed
Depends: libxi-dev:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
And some other packages the same error.
Please let me know how to resolve these conflicts, theanks.
You can correct the error by requesting apt to install the required packages:
sudo apt-get install libxtst-dev:i386 libxext-dev:i386 libxi-dev:i386
I prefer to use aptitude's curses-based "GUI" to navigate through the dependencies to resolve any issues.

how to install yum package on linux RHEL 4? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
when i run root#localhost# yum install package_name command on linux terminal it gives:
bash: yum: command not found
because i don't have yello update and modifier package install on my linux . for that i mount my linux iso disc.and write command
root#localhost# cd /meida/RHEL_4/i386/ Disk/ 1/
root#localhost RHEL_4 i386 Disk 1# ls
but there is no package directory. and i didn't find any http url form downloading(wget) yum.x.x.x.rpm. i have linux RHEL 4 AS version installed. plz help
Yum is not compatible with RHEL 4 (FOR RHN Stuff). They don't officially ship yum with rhel4 instead use legacy 'up2date' utility. up2date is similar to yum but far less featured package management utility but good in dependency resolution. It resolves the packages dependencies in same way, yum do.
Anyway, You can get the rpm package here, http://dl.fedoraproject.org/pub/epel...oview/yum.html. Just download it and install using rpm -ivh command. don't expect, yum will download the packages from RHN. to sync with rhn you still have to use up2date.

after install python 2.7.3 yum is broken [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
i installed libxml2-2.9.0 and libxslt-1.1.27 then yum is broken any yum command that i ran i got the result of :
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, Jan 21 2009, 01:11:33)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
then i thought python version is way too old and install python 2.7.3 and install it from scratch, after some wrong trials it got worse and worse, now when i run 'python -V' i got version 'Python 2.7.3', when i run '/usr/bin/python -V', it returned 'python-2.4.3-24.el5', and no matter what i did the yum is still broken with that message. how can i get yum back?
my os is: linux 2.6.18-164.11.1.el5 x86_64 GNU/Linux
See the FAQ:
In pre-2.3.? yum This error message is often misleading. To see the
real error, run python from the command line, and type import yum. The
problem probably isn't with your version of python at all, but with a
missing libxml2-python, python-sqlite, or python-elementtree package.
Yum 2.4.x provides a different error with the module import errors, so
this will become less confusing.
It also includes a directive to send the error to the mailing list.
Really, you should figure out what rpm provides the module that was
missing and try to install that.
If you are getting a message that yum itself is the missing module
then you probably installed it incorreclty (or installed the source
rpm using make/make install). If possible, find a prebuilt rpm that
will work for your system like one from Fedora or CentOS. Or, you can
download the srpm and do a
rpmbuild --rebuild yum*.src.rpm
So, if else fails, you can get the yum package somewhere like this.

Resources