Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-03-2017, 07:11 PM   #1
Registered: Apr 2015
Posts: 217

Rep: Reputation: Disabled
libgtk2 install problem

Hi there,
I was trying to install MEGA in my centos7 workstation. It gives me this error:
[zillur@genomics tools]$ sudo dpkg -i megacc_7.0.26-1_amd64.deb 
(Reading database ... 80 files and directories currently installed.)
Preparing to unpack megacc_7.0.26-1_amd64.deb ...
Unpacking megacc (7.0.26) over (7.0.26) ...
dpkg: dependency problems prevent configuration of megacc:
 megacc depends on libgtk2.0-0 (>= 2.0); however:
  Package libgtk2.0-0 is not installed.
 megacc depends on libgtk2.0-bin (>= 2.0); however:
  Package libgtk2.0-bin is not installed.

dpkg: error processing package megacc (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
So I tried to install libgtk2.0-0. But:
[zillur@genomics tools]$ sudo yum install libgtk2.0-dev
[sudo] password for zillur: 
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * updates:
No package libgtk2.0-dev available.
Error: Nothing to do
What should I do now? Thanks in advance.
Best regards
Old 07-03-2017, 07:53 PM   #2
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Forgive me for my naviety, but why are you not installing the rpm version of MEGA?

Also, why are you using dpkg as a package manager to install debs on CentOS and then using yum to install those packages' dependencies? Have you found some way that each package manager's database also keeps track of all packages installed by the other?

libgtk2.0-dev is a Debian-family package. It won't be in the standard CentOS repos.

If I were you, I would stick to rpm's and yum. Using both yum and dpkg on the same system willy-nilly is a recipe for trouble.

Last edited by hydrurga; 07-04-2017 at 06:11 AM.
Old 07-03-2017, 10:19 PM   #3
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I also have not heard of using dpkg on centos. You can use yum search gtk (gnome tool kit) to find the centos names of the files you require. Debian uses many packages starting with "lib". But redhat, centos, and fedora don't use the same convention.

Although, it's interesting to see that you got dpkg to actually do something on centos.
Old 07-03-2017, 11:41 PM   #4
LQ Guru
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Installing the rpm is your best practice. <seriously>
Why not use yum to do a search?

If yum can't find it to install it add a repo if need be:-


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is libgtk2.0-dev drink87 Linux - Newbie 1 12-02-2012 11:10 AM
libgtk2.0-bin install problem darknails Linux - General 5 07-19-2006 05:15 PM
libgtk2.0-dev allelopath SUSE / openSUSE 1 03-31-2006 05:36 AM
Error whilst intalling 'libgtk2.0-dev', 'Broken Pipe'?! Eerath MEPIS 4 08-15-2005 10:47 AM
problems setting up libgtk2.0-common via apt-get on debian unstable f3lix Linux - Software 1 04-15-2003 01:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration