Linux - NewbieThis 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.
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.
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.
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?
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.
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:
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.