Hi guys,
Going from sarge to etch, I'm getting this:
# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
ssh: Depends: openssh-client but it is not installed
Depends: openssh-server but it is not installed
E: Unmet dependencies. Try using -f.
then:
# apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
openssh-client openssh-server
Suggested packages:
ssh-askpass xbase-clients rssh molly-guard
The following NEW packages will be installed:
openssh-client openssh-server
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
318 not fully installed or removed.
Need to get 0B/826kB of archives.
After unpacking 1966kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
openssh-client openssh-server
Install these packages without verification [y/N]? y
Preconfiguring packages ...
(Reading database ... 28861 files and directories currently installed.)
Unpacking openssh-client (from .../openssh-client_1%
3a4.3p2-7_i386.deb) ...
Transferring ownership of conffile /etc/ssh/moduli ...
Transferring ownership of conffile /etc/ssh/ssh_config ...
dpkg: error processing /var/cache/apt/archives/openssh-client_1%
3a4.3p2-7_i386.deb (--unpack):
trying to overwrite `/etc/ssh/ssh_config', which is also in package ssh
Aborting ownership transfer of conffile /etc/ssh/moduli ...
Aborting ownership transfer of conffile /etc/ssh/ssh_config ...
Unpacking openssh-server (from .../openssh-server_1%
3a4.3p2-7_i386.deb) ...
Transferring ownership of conffile /etc/default/ssh ...
Transferring ownership of conffile /etc/init.d/ssh ...
Transferring ownership of conffile /etc/pam.d/ssh ...
dpkg: error processing /var/cache/apt/archives/openssh-server_1%
3a4.3p2-7_i386.deb (--unpack):
trying to overwrite `/etc/init.d/ssh', which is also in package ssh
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Aborting ownership transfer of conffile /etc/default/ssh ...
Aborting ownership transfer of conffile /etc/init.d/ssh ...
Aborting ownership transfer of conffile /etc/pam.d/ssh ...
Errors were encountered while processing:
/var/cache/apt/archives/openssh-client_1%3a4.3p2-7_i386.deb
/var/cache/apt/archives/openssh-server_1%3a4.3p2-7_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
if I try to dpkg -i those packages by hand, I get the same problem.
Has anyone seen this? The result of the above is that apt-get
dist-upgrade aborted, leaving me with a non-functioning web/mail/dns
server. I have gotten mysql, postfix, courier and bind working again,
but still having issues with apache2. And of course my OS is now half
sarge and half unconfigured etch.
Thanks
Hans
--
Bookmark/Search this post with:
apt-get dist-upgrade failes on ssh
On Monday 18 December 2006 17:29, Hans du Plooy wrote:
> On Tue, 2006-12-19 at 03:26 +0200, Hans du Plooy wrote:
> Of course, the bigger issue is now, I can't open any new ssh sessions
> to the box (which happens to be halfway accross the globe). I still
> have some sessions open, but i'm on a dial-up so I'll get disconnected
> soon.
You might want to try installing telnetd temporarily.
--Mike Bird
--
apt-get dist-upgrade failes on ssh
On Tue, Dec 19, 2006 at 03:26:35AM +0200, Hans du Plooy wrote:
> Hi guys,
>
> Going from sarge to etch, I'm getting this:
>
> # apt-get dist-upgrade
> Reading package lists... Done
> Building dependency tree... Done
> You might want to run `apt-get -f install' to correct these.
> The following packages have unmet dependencies:
> ssh: Depends: openssh-client but it is not installed
> Depends: openssh-server but it is not installed
> E: Unmet dependencies. Try using -f.
>
> then:
>
> # apt-get -f install
> Reading package lists... Done
> Building dependency tree... Done
> Correcting dependencies... Done
> The following extra packages will be installed:
> openssh-client openssh-server
> Suggested packages:
> ssh-askpass xbase-clients rssh molly-guard
> The following NEW packages will be installed:
> openssh-client openssh-server
> 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
> 318 not fully installed or removed.
> Need to get 0B/826kB of archives.
> After unpacking 1966kB of additional disk space will be used.
> Do you want to continue [Y/n]? y
> WARNING: The following packages cannot be authenticated!
> openssh-client openssh-server
> Install these packages without verification [y/N]? y
> Preconfiguring packages ...
> (Reading database ... 28861 files and directories currently installed.)
> Unpacking openssh-client (from .../openssh-client_1%
> 3a4.3p2-7_i386.deb) ...
> Transferring ownership of conffile /etc/ssh/moduli ...
> Transferring ownership of conffile /etc/ssh/ssh_config ...
> dpkg: error processing /var/cache/apt/archives/openssh-client_1%
> 3a4.3p2-7_i386.deb (--unpack):
> trying to overwrite `/etc/ssh/ssh_config', which is also in package ssh
> Aborting ownership transfer of conffile /etc/ssh/moduli ...
> Aborting ownership transfer of conffile /etc/ssh/ssh_config ...
> Unpacking openssh-server (from .../openssh-server_1%
> 3a4.3p2-7_i386.deb) ...
> Transferring ownership of conffile /etc/default/ssh ...
> Transferring ownership of conffile /etc/init.d/ssh ...
> Transferring ownership of conffile /etc/pam.d/ssh ...
> dpkg: error processing /var/cache/apt/archives/openssh-server_1%
> 3a4.3p2-7_i386.deb (--unpack):
> trying to overwrite `/etc/init.d/ssh', which is also in package ssh
> dpkg-deb: subprocess paste killed by signal (Broken pipe)
> Aborting ownership transfer of conffile /etc/default/ssh ...
> Aborting ownership transfer of conffile /etc/init.d/ssh ...
> Aborting ownership transfer of conffile /etc/pam.d/ssh ...
> Errors were encountered while processing:
> /var/cache/apt/archives/openssh-client_1%3a4.3p2-7_i386.deb
> /var/cache/apt/archives/openssh-server_1%3a4.3p2-7_i386.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> if I try to dpkg -i those packages by hand, I get the same problem.
>
> Has anyone seen this? The result of the above is that apt-get
> dist-upgrade aborted, leaving me with a non-functioning web/mail/dns
> server. I have gotten mysql, postfix, courier and bind working again,
> but still having issues with apache2. And of course my OS is now half
> sarge and half unconfigured etch.
two things I would try. purge all three offending packages, go through
the upgrade and then install them again. I *think* that even removing
ssh will not kill the current sessions (other posters advice about
telnet is probably a good one).
-or-
use dpkg with --force-all
might help. good luck. hey! maybe you'll get to take trip ;)
A
apt-get dist-upgrade failes on ssh
On Mon, 2006-12-18 at 22:28 -0800, Andrew Sackville-West wrote:
> use dpkg with --force-all
Thanks, that did it. Couldn't install telnetd because apt would moan
about the deps. But at least I got ssh sorted out. Now just apache
still seem to be broken - working on that.
> might help. good luck. hey! maybe you'll get to take trip ;)
I'm actually making the trip in two weeks :-)
Thanks!
--
apt-get dist-upgrade failes on ssh
On Tue, Dec 19, 2006 at 10:18:14AM +0200, Hans du Plooy wrote:
> On Mon, 2006-12-18 at 22:28 -0800, Andrew Sackville-West wrote:
> > use dpkg with --force-all
> Thanks, that did it. Couldn't install telnetd because apt would moan
> about the deps. But at least I got ssh sorted out. Now just apache
> still seem to be broken - working on that.
I'm glad (based on your other thread) that you got it sorted. It
pretty amazing thethings one can do eh?
>
> > might help. good luck. hey! maybe you'll get to take trip ;)
> I'm actually making the trip in two weeks :-)
so... you just couldn't wait to do the upgrade eh? ;-P
A
apt-get dist-upgrade failes on ssh [solved]
On Tue, 2006-12-19 at 10:24 -0800, Andrew Sackville-West wrote:
> On Tue, Dec 19, 2006 at 10:18:14AM +0200, Hans du Plooy wrote:
> > On Mon, 2006-12-18 at 22:28 -0800, Andrew Sackville-West wrote:
> > > use dpkg with --force-all
> > Thanks, that did it. Couldn't install telnetd because apt would moan
> > about the deps. But at least I got ssh sorted out. Now just apache
> > still seem to be broken - working on that.
>
> I'm glad (based on your other thread) that you got it sorted. It
> pretty amazing thethings one can do eh?
With enough coffee I can do anything :-)
BTW, the reason why apahce was giving me bullets was that when ssh
failed, the new version of apache2 had been installed, but not
configured. After forcing the issues on ssh, I did apt-get dist-upgrade
again, and it just continued where it stopped before. After that all I
needed to do was merge some configs, restart a few services (it's a UML
box, so I didn't even have to reboot it), and all is well again.
> > > might help. good luck. hey! maybe you'll get to take trip ;)
> > I'm actually making the trip in two weeks :-)
>
> so... you just couldn't wait to do the upgrade eh? ;-P
Actually the client were pressuring me for php5 and mysql5, and I prefer
using testing (at least when it's closer to becoming the new stable) to
backports. Besides, I've setup several servers with Etch lately and
they're as stable as my woody and sarge servers - just more up to date.
Thanks
Hans
--
apt-get dist-upgrade failes on ssh
I seem to have the same problem and I am not to familiar with the dpkg command.
Can you give me the correct syntax for the dpkg command to install openssh-client and server with the --force-all option?
Thanks in advance!
apt-get dist-upgrade failes on ssh
On Sun, Dec 31, 2006 at 05:57:47PM +0100, fvassem wrote:
>
> I seem to have the same problem and I am not to familiar with the dpkg
> command.
>
> Can you give me the correct syntax for the dpkg command to install
> openssh-client and server with the --force-all option?
the command is
dpkg -i --force-all /path/to/openssh=client.deb
the .deb is probably located in /var/cache/apt/archives
don't do this lightly. forcing things can break them. find out why its
doing it and make sure you understand the risks before you issue that
command.
A
apt-get dist-upgrade failes on ssh
On Sun, Dec 31, 2006 at 05:57:47PM +0100, fvassem wrote:
>
> I seem to have the same problem and I am not to familiar with the dpkg
> command.
>
> Can you give me the correct syntax for the dpkg command to install
> openssh-client and server with the --force-all option?
>
You are much better off purging ssh and then installing openssh-client
and openssh-server. It is much safer that way.
Regards,
-Roberto
--
Roberto C. Sanchez
http://people.connexer.com/~roberto
http://www.connexer.com