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! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-18-2017, 05:47 AM
|
#1
|
Member
Registered: May 2016
Distribution: MX Linux
Posts: 254
Rep:
|
Unable to install curl
I am trying to install curl on Xubuntu. I run this command: apt-get install curl but i get missing dependencies:
Code:
root@osboxes:/home/osboxes# apt-get install curl
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.
curl : Depends: libcurl3 (= 7.35.0-1ubuntu2) but 7.35.0-1ubuntu2.5 is to be installed
E: Unable to correct problems, you have held broken packages.
But if i try to install the missing dependency libcurl3 it says that it is already the newest version:
Code:
root@osboxes:/home/osboxes# apt-get install libcurl3
Reading package lists... Done
Building dependency tree
Reading state information... Done
libcurl3 is already the newest version.
libcurl3 set to manually installed.
0 to upgrade, 0 to newly install, 0 to remove and 3 not to upgrade.
|
|
|
01-18-2017, 05:59 AM
|
#2
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,597
|
Did you update the APT database before trying to install?
Code:
apt-get update
apt-get install curl
|
|
|
01-18-2017, 07:20 AM
|
#3
|
Member
Registered: May 2016
Distribution: MX Linux
Posts: 254
Original Poster
Rep:
|
Yes, i run apt-get update before trying to install curl.
I think the problem might be that i am trying to install curl on Xubuntu 14.04 which is older version, so i am not sure if i will be able to install libcurl3 package online.
Is it possible to install libcurl3 package manually? I found the download page for libcurl3 here: http://packages.ubuntu.com/trusty/libcurl3 which i think is the version for ubuntu 14.04 (trusty). But i am not sure which files i have to download. Do i have to download the files that are in 'Architecture' column?
|
|
|
01-18-2017, 08:09 AM
|
#4
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Have you actually run:
apt update
apt upgrade
to check that all the programs you have installed from your repos are up-to-date?
You might find that apt upgrade produces some illuminating output.
|
|
|
01-18-2017, 08:36 AM
|
#5
|
Member
Registered: May 2016
Distribution: MX Linux
Posts: 254
Original Poster
Rep:
|
apt-upgrade upgrades the Xubuntu version. What if i don't want to upgrade? Is it not possible to install curl without upgrading?
|
|
|
01-18-2017, 08:48 AM
|
#6
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Quote:
Originally Posted by peter7089
apt-upgrade upgrades the Xubuntu version. What if i don't want to upgrade? Is it not possible to install curl without upgrading?
|
No it doesn't. apt upgrade (note, no hyphen) or apt-get upgrade updates your software packages to the latest ones in the repositories, after getting your confirmation that you want to proceed.
apt update (or apt-get update), despite the name, updates no packages. It merely looks at the repositories to update the system's knowledge of which of your installed packages are updateable dependent on the version numbers.
|
|
|
01-18-2017, 09:06 AM
|
#7
|
Member
Registered: May 2016
Distribution: MX Linux
Posts: 254
Original Poster
Rep:
|
Ok, i run apt-get upgrade but i am still not able to install curl. Getting the same dependencies error.
I run also apt upgrade but no change.
Last edited by peter7089; 01-18-2017 at 09:09 AM.
|
|
|
01-18-2017, 09:12 AM
|
#8
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Quote:
Originally Posted by peter7089
Ok, i run apt-get upgrade but i am still not able to install curl. Getting the same dependencies error.
I run also apt upgrade but no change.
|
There is no need for you to run both apt-get upgrade and apt upgrade - they are for all intents and purposes the same command, it's just that the latter uses the more modern apt command.
Just so we can be happy that everything is nice and up to date, please enter:
apt update
apt upgrade
and paste the output from both commands here.
|
|
|
01-18-2017, 09:22 AM
|
#9
|
Member
Registered: May 2016
Distribution: MX Linux
Posts: 254
Original Poster
Rep:
|
I finally fixed it. I used aptitude to try to install curl and it asked me to downgrade the libcurl3 package, i choose 'yes' and it installed curl. Solving dependencies issues in linux is such a pain!
|
|
|
All times are GMT -5. The time now is 12:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|