broken dpkg

Amin Vakil

Active Member
Nov 21, 2017
21
2
43
I had openssh-server working on my dedicated server running proxmox, but everytime I tried to upgrade anything I got this error:

dpkg:error processing package openssh-server (--configure):
subprocess installed post-installation script returned error exit status 10

So I read on forums that I should uninstall and purge openssh-server and install it again therefore I ran proxmox shell which doesn't need ssh to connect to server and remove openssh-server.

Now I cannot install it and I don't have ssh access to my server.

I tried this:

$ dpkg --configure -D 777 openssh-server
...
D000400: checking breaker openssh-sftp-server:amd64 virtbroken <none>
D000400: checking virtbroken openssh-server
Setting up openssh-server (1:7.4p1-10+deb9u3) ...
D000002: fork/exec /var/lib/dpkg/info/openssh-server.postinst ( configure )
dpkg: error processing package openssh-server (--configure):
subprocess installed post-installation script returned error exit status 10
D000001: ensure_diversions: same, skipping
Errors were encountered while processing:
openssh-server

I also tried removing openssh-server* from /var/lib/dpkg/info and installing it again I didn't have any success.

My OS is Debian Stretch and I installed proxmox kernel on it.

How can I install openssh-server with these situation?
 
I've faced with similiar problem and i couldn't solve the issue.
I had to reinstall everything from scratch.

This problem appeared after upgrading system via apt-get update && apt-get upgrade

I believe this is related with the latest upgrade of debian 9.3 to debian 9.4.
How to safely upgrade from debian 9.3 to 9.4 ?

I've an another server which is waiting for upgrade.
 
I've faced with similiar problem and i couldn't solve the issue.
I had to reinstall everything from scratch.

This problem appeared after upgrading system via apt-get update && apt-get upgrade

I believe this is related with the latest upgrade of debian 9.3 to debian 9.4.
How to safely upgrade from debian 9.3 to 9.4 ?

Please follow the upgrade guide, never run "apt-get upgrade":

https://pve.proxmox.com/wiki/Downlo...Proxmox_Virtual_Environment_5.x_to_latest_5.1
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!