0

I am completely new to Ubuntu environment. I am trying to install open ssh server on my Ubuntu server with sudo apt-get install openssh-server

But I am receiving the error as :

Some packages could not be installed.This may mean 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.

Please help.

Thanks in advance.

Sri

2
  • Include the full error output from apt-get, or the entire apt-get output that shows you that error.
    – Thomas Ward
    Jul 19, 2015 at 16:02
  • Can you post the output of cat /etc/apt/sources.list.d/*?
    – wb9688
    Jul 19, 2015 at 16:18

2 Answers 2

0

Try this:

sudo dpkg --configure -a
sudo apt-get clean
sudo apt-get update
sudo apt-get install --fix-missing
sudo apt-get install openssh-server
2
  • when I run sudo apt-get update ; I am receving the Hash Sum Mismatch error. @wb9688
    – Sri
    Jul 19, 2015 at 16:06
  • Please include the full error in the question
    – wb9688
    Jul 19, 2015 at 16:07
-2

Try using aptitude instead of apt-get:

sudo aptitude install <packagename>

If you don't have aptitude on your machine, you can get it by typing:

sudo apt-get install aptitude

And try to install OpenSSH again:

sudo aptitude install openssh-server
2
  • I tried this and still not working :( Serphiroth
    – Sri
    Jul 19, 2015 at 16:00
  • 1
    sudo aptitude install openssh-server command was working for me.
    – Sri
    Jul 19, 2015 at 16:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .