[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

install libssl

Posted on 2011-05-03
5
Medium Priority
?
1,176 Views
Last Modified: 2012-05-11
hi all,
when i try to install libssl in ubuntu, i got this error message.Please advise. I am a newbie in ubuntu.
tks.

ubuntu@ubuntu:~/program$ sudo apt-get install libssl-dev
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 resolve the situation:

The following packages have unmet dependencies:
 libssl-dev : Depends: libssl0.9.8 (= 0.9.8o-1ubuntu4) but 0.9.8o-1ubuntu4.4 is to be installed
E: Broken packages
 
0
Comment
Question by:BeginToLearn
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:a1j
ID: 35516188
Run
sudo apt-get update
 and try again.
Its seems like you are installing outdated version of libssl-dev which has dependency on outdated version of libssl but apt cache has only newer version of it.
0
 

Author Comment

by:BeginToLearn
ID: 35516204
same problem.

ubuntu@ubuntu:~/program$ sudo apt-get update
Hit http://extras.ubuntu.com maverick Release.gpg
Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en
Hit http://ca.archive.ubuntu.com maverick Release.gpg
Ign http://ca.archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Hit http://ca.archive.ubuntu.com/ubuntu/ maverick/main Translation-en_CA
Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en_CA
Hit http://extras.ubuntu.com maverick Release
Ign http://ca.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en
Ign http://ca.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en_CA
Ign http://ca.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
Hit http://ca.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en_CA
Ign http://ca.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Ign http://ca.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_CA
Hit http://ca.archive.ubuntu.com maverick Release
Hit http://extras.ubuntu.com maverick/main Sources
Hit http://extras.ubuntu.com maverick/main i386 Packages
Hit http://ca.archive.ubuntu.com maverick/main Sources
Hit http://ca.archive.ubuntu.com maverick/restricted Sources
Hit http://ca.archive.ubuntu.com maverick/universe Sources
Hit http://ca.archive.ubuntu.com maverick/multiverse Sources
Hit http://ca.archive.ubuntu.com maverick/main i386 Packages
Hit http://ca.archive.ubuntu.com maverick/restricted i386 Packages
Hit http://ca.archive.ubuntu.com maverick/universe i386 Packages
Hit http://ca.archive.ubuntu.com maverick/multiverse i386 Packages
Reading package lists... Done
ubuntu@ubuntu:~/program$ sudo apt-get install libssl-dev
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 resolve the situation:

The following packages have unmet dependencies:
 libssl-dev : Depends: libssl0.9.8 (= 0.9.8o-1ubuntu4) but 0.9.8o-1ubuntu4.4 is to be installed
E: Broken packages
ubuntu@ubuntu:~/program$
0
 
LVL 4

Accepted Solution

by:
a1j earned 2000 total points
ID: 35516579
You either using outdating mirror which did not complete mirroring (you could just wait for this to be resolved), or you already had installed libssl via dpkg (not via apt) and new package version stuck in your cache.
To clean your apt cache you need to delete files in your apt cache directory:

/var/lib/apt/lists/   delete all *Release* and *Packages*
then rerun apt-get update to refresh cache.

If that still does not help - see if you have some other conflicts by running
sudo apt-get install -f
0
 

Author Comment

by:BeginToLearn
ID: 35516726
the problem solve by follow this guide:

Here is a synopsis about it:
I needed to configure the options for software update first, through Ubuntu’s System ->  Administration -> Update Manager -> Settings… -> Software Sources window. After checking the first two checkboxes in each of the two tabs, “Ubuntu Software” and “Updates” and running
$sudo apt-get update
I was finally able to run this successfully:
apt-get install libssl-dev

http://www.suncongs.info/blog/

So i didn't have a chance to test your guide.
0
 

Author Comment

by:BeginToLearn
ID: 35517307
but i think your guide is right. tks.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month17 days, 23 hours left to enroll

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question