LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-24-2017, 12:26 AM   #1
akkki
LQ Newbie
 
Registered: Oct 2017
Posts: 12

Rep: Reputation: Disabled
package Error


Hiiii .....

There is a problem in my ubuntu..
whenever i install any package'
sudo apt-get openssh-server

then i got below error
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)
E: Sub-process /usr/bin/dpkg returned an error code (1)

how can i fix this error......

reagards
Akki
 
Old 11-24-2017, 01:36 AM   #2
jsbjsb001
Member
 
Registered: Mar 2009
Location: hopefully somewhere on earth? ;)
Distribution: Whatever Linux distro that suits my needs!
Posts: 753

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally Posted by akkki View Post
Hiiii .....

There is a problem in my ubuntu..
whenever i install any package'
sudo apt-get openssh-server

then i got below error
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)
E: Sub-process /usr/bin/dpkg returned an error code (1)

how can i fix this error......

reagards
Akki
Because you don't say which version of Ubuntu you are using, I can only guess it's the desktop version of Ubuntu. Therefore it would be helpful if you provided a little more information, to help us better assist you.

If you haven't already, you might consider looking at Ubuntu Server Edition instead of the desktop version of Ubuntu, which might be a lot better, if you intend on using your machine as a server rather that a desktop machine.

https://www.ubuntu.com/download/server

https://help.ubuntu.com/lts/serverguide/index.html
 
Old 11-24-2017, 01:42 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,907

Rep: Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921
have you already tried what was suggested: apt-get -f install ?
 
Old 11-24-2017, 04:15 PM   #4
Stev8
Member
 
Registered: Mar 2012
Location: Hamilton, Ontario
Distribution: Ubuntu 17.10 64 bit
Posts: 83

Rep: Reputation: Disabled
Hi,

I too had the same prob of a previous install in ubuntu 17.10.

try
apt-get -f install

first

or

install synaptic package manager and i believe you can click on status and it will show your unmet dependancies and you can mark them for removal as far as ive read.

Now in my case I had a install of libreoffice fail, then i had a bunch of unmet depencies. I tried the
apt-get -f install
it did not do anything
I tried a bunch of other things including
sudo apt-get --fix install(or something like that ... sorry i forget the cmd)
and everything led me in loops. then i just did a re-install of ubuntu 17.10.

theres also a good webpage at:
http://www.iasptk.com/ubuntu-fix-bro...best-solution/
 
1 members found this post helpful.
Old 11-24-2017, 06:09 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,758

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
Quote:
sudo apt-get openssh-server
The install command is
Code:
sudo apt-get update && sudo apt-get install openssh-server
 
Old 11-25-2017, 11:30 AM   #6
!!!
Member
 
Registered: Jan 2017
Posts: 633

Rep: Reputation: 245Reputation: 245Reputation: 245
To install Ubuntu sshd .deb, omitting 'install' keyword in apt-get openssh-server fails: E: unmet dependencies

Just fji, I believe 'openssh-server' is the desktop name for sshd pkg
(I remember trying to figure out this pkg name, to use putty into Ubu VBox,
similar to how I now run busybox's telnetd -l /bin/sh, with no /etc/passwd)

Also, @akkki, when you mark this Thread as solved, you might also:
Edit the Title, to something more descriptive, to help future searchers.
"To install Ubuntu sshd .deb, omitting 'install' keyword in apt-get openssh-server fails: E: unmet dependencies"
You can do this, by clicking on 'Go Advanced' button, after 'Edit' on post#1.
Thank you for your consideration. Best wishes always. Welcome to Linux

Last edited by !!!; 11-25-2017 at 12:10 PM.
 
  


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
Package manager Error: The package lists or status file could not be parsed or opened Chrisbar Debian 8 08-09-2016 07:06 AM
Wizardpen 8.2 Ubuntu package has a mismatch error - The source has error compiling on Mint Linux 17 we_had_had_help Linux - Software 0 02-05-2016 09:46 PM
I got an error while running leach package in ns2.. help me to get out of this error. rkgowrishankar Linux - Software 1 02-07-2012 05:51 AM
Write-error on swap-device error on package install slack 12.2 chickenlinux Slackware 11 01-25-2009 09:14 PM
Yum Error: Transaction Check Error package x(which is newer than package y)... godsk Linux - Newbie 0 06-05-2006 08:13 AM

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

All times are GMT -5. The time now is 08:40 AM.

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