I'm extremely new to Linux/command line stuff, so please forgive my ignorance.
Every time I try to install anything using sudo apt-get install ...
I get dependency errors.
I'm trying to get OpenSSH Server and GitLab installed on my machine, and whenever I type in the commands, I seem to get a dependency error like so:
sudo apt-get install openssh-server
reading package lists... 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:
openssh-server : Depends: libwrap0 (>= 7.6-4~) but it is not installable
Recommends: ssh-import-id but it is not installable
E: Unable to correct problems, you have held broken packages.
I get similar errors seemingly no matter what I try to install. For example, with sudo apt-get install git
, the error changes to:
The following packages have unmet dependencies:
git : Depends: liberror-perl but it is not installable
E: Unable to correct problems, you have held broken packages
I'm running Ubuntu Server 12.04 LTS x86. I've tried doing sudo apt-get clean
, sudo apt-get autoclean
, sudo apt-get update
, and sevveral other similar things. I've tried rebooting, hell, I even wiped out the server and started from scratch with the same issue. I'm sure I'm doing something obviously wrong, but I just can't seem to track it down. If anyone could help, that'd be fantastic.
Update: I did get OpenSSH working by clean installing the server and selecting OpenSSH during set up.
I found this wiki on apt-get so I tried doing sudo apt-get build-dep git
and got the error:
E: Build-Depends-Indep dependency for git cannot be satisfied because package asciidoc has no candidate version
I don't know if that helps determine what's happening.
sudo apt-get update && sudo apt-get upgrade
andsudo apt-get dist-upgrade
You should not be getting these errors. Did you verify the Ubuntu install (.iso file)? – david6 Jan 20 '15 at 06:17sudo apt-get update && sudo apt-get upgrade
resulted in 8W: Failed to fetch http://... Hash Sum mismatch
errors. I'm not seeing any errors withsudo apt-get dist-upgrade
, but after trying to do an apt-get install it still doesn't work. Using SSH so I can't verify the iso at the moment, but I will when I get home tonight. Should also mentioned this is on a clean install, I got SSH working by selecting it during install. – JacobTheDev Jan 20 '15 at 14:08sudo apt-get update
? – g_p Jan 20 '15 at 16:15sudo: add-apt-repository: command not found
. for teh GPG ERROR one I getrm: cannot remove
/var/lib/apt/lists/partial': Is a directoryTried the fix linked for the
add-apt-repository` error but got the same error when running again: http://linuxg.net/how-to-fix-error-sudo-add-apt-repository-command-not-found/ – JacobTheDev Jan 20 '15 at 16:42add-apt-repository
issue but I get the error(Y PPA Manager:4580): Gtk-WARNING **: cannot open display:
when trying to run y-ppa-manager – JacobTheDev Jan 20 '15 at 16:56