LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-18-2017, 05:47 AM   #1
peter7089
Member
 
Registered: May 2016
Posts: 86

Rep: Reputation: Disabled
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.
 
Old 01-18-2017, 05:59 AM   #2
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 4,444
Blog Entries: 3

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Did you update the APT database before trying to install?

Code:
apt-get update
apt-get install curl
 
Old 01-18-2017, 07:20 AM   #3
peter7089
Member
 
Registered: May 2016
Posts: 86

Original Poster
Rep: Reputation: Disabled
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?
 
Old 01-18-2017, 08:09 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872
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.
 
Old 01-18-2017, 08:36 AM   #5
peter7089
Member
 
Registered: May 2016
Posts: 86

Original Poster
Rep: Reputation: Disabled
apt-upgrade upgrades the Xubuntu version. What if i don't want to upgrade? Is it not possible to install curl without upgrading?
 
Old 01-18-2017, 08:48 AM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872
Quote:
Originally Posted by peter7089 View Post
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.
 
Old 01-18-2017, 09:06 AM   #7
peter7089
Member
 
Registered: May 2016
Posts: 86

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-18-2017, 09:12 AM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872
Quote:
Originally Posted by peter7089 View Post
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.
 
Old 01-18-2017, 09:22 AM   #9
peter7089
Member
 
Registered: May 2016
Posts: 86

Original Poster
Rep: Reputation: Disabled
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!
 
  


Reply


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
[SOLVED] Git cURL in jailed shell unable to initialize NSS database Thomas. Linux - Software 3 05-07-2019 08:44 AM
install curl LYC Linux - Newbie 6 07-04-2016 05:59 AM
yum install php-curl trouble wificonnexion Linux - Newbie 7 05-11-2011 01:27 AM
Unable to download updates (curl error) galliar SUSE / openSUSE 2 02-01-2009 05:11 PM
PHP and CURL install on Mandrake 9 dmcentire Linux - Distributions 0 10-21-2002 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:59 PM.

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