PDA

View Full Version : [ubuntu] cannot update ssh



vlad_constantin_manea
May 24th, 2008, 10:22 PM
Hi,

I tried to install the latest updates for openssh-server and client (through
Update Manager) but I go this error:

E: /var/cache/apt/archives/openssh-server_1%3a4.3p2-8ubuntu1.4_i386.deb: unable to make backup link of `./usr/sbin/sshd' before installing new version
E: /var/cache/apt/archives/openssh-client_1%3a4.3p2-8ubuntu1.4_i386.deb: unable to make backup link of `./usr/bin/ssh' before installing new version

Any idea how to fix this?

Thanks,
Vlad

Pumalite
May 24th, 2008, 10:26 PM
sudo aptitude update
sudo aptitude upgrade

vlad_constantin_manea
May 24th, 2008, 10:39 PM
Nop,
I still got this:
...
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/openssh-server_1%3a4.3p2-8ubuntu1.4_i386.deb
/var/cache/apt/archives/openssh-client_1%3a4.3p2-8ubuntu1.4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:

Pumalite
May 24th, 2008, 10:43 PM
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade

vlad_constantin_manea
May 24th, 2008, 10:52 PM
Nop, It did not work. Got the same error.

dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/openssh-server_1%3a4.3p2-8ubuntu1.4_i386.deb
/var/cache/apt/archives/openssh-client_1%3a4.3p2-8ubuntu1.4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
vlad@geodynamics:~$

Just a question: I tried to sshkeygen -t rsa but
I got a segmentation fault.
I am wandering if some hackers just compromised my machine.

Vlad

Pumalite
May 24th, 2008, 10:59 PM
Clean your cache.

vlad_constantin_manea
May 24th, 2008, 11:07 PM
Nop again and got this.

~$ sudo apt-get clean
...
After unpacking 106kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Abort.

Pumalite
May 24th, 2008, 11:20 PM
Try this:
sudo dpkg -i --force-overwrite /var/cache/apt/archives/<packagename>

vlad_constantin_manea
May 25th, 2008, 02:27 AM
Try this:
sudo dpkg -i --force-overwrite /var/cache/apt/archives/<packagename>


Nop again. I think they (hackers) compromise my machine. I just read this:

http://www.ubuntu.com/usn/usn-612-2

Also,these days we have had a similar case on the head nod of our cluster...


~$ sudo dpkg -i --force-overwrite /var/cache/apt/archives/openssh-server_1%3a4.3p2-8ubuntu1.4_i386.deb
Password:
(Reading database ... 183110 files and directories currently installed.)
Preparing to replace openssh-server 1:4.3p2-8ubuntu1.2 (using .../openssh-server_1%3a4.3p2-8ubuntu1.4_i386.deb) ...
Unpacking replacement openssh-server ...
dpkg: error processing /var/cache/apt/archives/openssh-server_1%3a4.3p2-8ubuntu1.4_i386.deb (--install):
unable to make backup link of `./usr/sbin/sshd' before installing new version: Operation not permitted
Errors were encountered while processing:
/var/cache/apt/archives/openssh-server_1%3a4.3p2-8ubuntu1.4_i386.deb
~$

anatolik
April 16th, 2011, 05:41 PM
I have similar issue on my ubuntu server. Did you solve the problem?

I found something similar here http://forums.debian.net/viewtopic.php?p=160255