[Solved] Samba install breaks sshd - cannot login

Problems with packages? Post here, using [tags] of the package name.

[Solved] Samba install breaks sshd - cannot login

Postby fenschop2 » Fri May 20, 2011 8:44 pm

I recently did a fresh install on a USB stick of the Linux 2011.02 rootfs which went fine. After that I did pacman install of samba, and that breaks ssh. This prevented me from login into the system. After some debugging and installing Arch Linux ARM linux again, with a telnet daemon, I got confirmation that samba is the cause. It may have to do with a very recent build of samba (3.5.8-3).

This is the issue: Samba uses krb5, and wants Heimdal to be deinstalled. Apparantly, Heimdal is used by sshd.
Hope someone can fix this.

$this->bbcode_second_pass_code('', '[root@Arch Linux ARM install /]# pacman -Ss samba
extra/samba 3.5.8-3
.....
:: krb5 and heimdal are in conflict. Remove heimdal? [y/N] y

Remove (1): heimdal-1.3.3-4

Total Removed Size: 9.92 MB
....
')

and when logged in through telnet, I can observe this message:
$this->bbcode_second_pass_code('', '[root@SevenWatt /]# /etc/rc.d/sshd restart
:: Stopping Secure Shell Daemon [DONE]
:: Starting Secure Shell Daemon [BUSY] /usr/sbin/sshd: error while loading shared libraries: libkafs.so.0: cannot open shared object file: No such file or directory
[FAIL]
')
Hope it can be fixed, because telnet is not the best choice. Maybe I can install the previous version of samba. It seems to be in the repository.
Last edited by fenschop2 on Mon May 23, 2011 6:03 pm, edited 1 time in total.
fenschop2
 
Posts: 6
Joined: Tue May 17, 2011 11:24 am

Re: Samba install breaks sshd - cannot login

Postby pepedog » Fri May 20, 2011 9:47 pm

Did you pacman -Sfy
Krb5 pkg has same date as openssh
Everything is switching from heimdal to krb5
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Samba install breaks sshd - cannot login

Postby kmihelich » Sat May 21, 2011 12:37 am

pacman -Syu

A lot has changed since February, and mixing and matching doesn't work well.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Samba install breaks sshd - cannot login

Postby pepedog » Sat May 21, 2011 10:17 am

Whoops, I meant Syuf
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Samba install breaks sshd - cannot login

Postby slycat » Sun May 22, 2011 4:45 pm

yeah I beilieve anyone updating their plug and using Samba will be prompted for this. It should be safe though. Did the update from a remote location and never dropped ssh connectivity.
Pogoplug Pro w/ Wireless User -> decomm.
Cubox-i4pro User
4TB eSATA HDD (8g/3700+ Sw/Storage)
Kodi / Transmission / Minidlna / Samba / Batch-audio-conversions / Lighttpd
------------------------------
Rollback Machine - Thanks to impatt
slycat
 
Posts: 169
Joined: Wed Feb 09, 2011 3:07 am
Location: Miami, FL

Re: [Solved] Samba install breaks sshd - cannot login

Postby fenschop2 » Mon May 23, 2011 6:05 pm

pacman -Syuf solved the problem. Maybe it is usefull to put this in the pogoplug v2 initial installation wiki.
fenschop2
 
Posts: 6
Joined: Tue May 17, 2011 11:24 am

Re: [Solved] Samba install breaks sshd - cannot login

Postby kemifl » Mon May 30, 2011 7:17 pm

I had this problem. I'm not great with linux, and haven't used an arch-based distro before, so it took me quite some time to recover and get back to where I was. Then I tried again and followed the instruction above. That is, I tried to install samba with the following command:
$this->bbcode_second_pass_code('', 'pacman -Syuf samba avahi')
However, the result was the same:
$this->bbcode_second_pass_code('', 'looking for inter-conflicts...
:: krb5 and heimdal are in conflict. Remove heimdal? [y/N]')
I don't want to make the same mistake twice, so I entered N and abandoned the installation. If I select y won't the same thing happen again (that is, heimdal will be replaced by krb5, thus breaking ssh)?
Can somebody please explain if it's safe to install in this way, or suggest some other way to install samba without breaking ssh?
kemifl
 
Posts: 2
Joined: Mon May 30, 2011 7:08 pm

Re: [Solved] Samba install breaks sshd - cannot login

Postby kmihelich » Mon May 30, 2011 7:34 pm

Again, yes. Do a full upgrade on your installation (pacman -Syu) and let it replace heimdal with krb5. It's doing this because krb5 replaces heimdal. All the packages use krb5 now, heimdal is gone. Trust the package manager, its purpose is to manage the packages on your system and do what's right. It's when people take it upon themselves to subvert the process that installations break.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: [Solved] Samba install breaks sshd - cannot login

Postby kemifl » Mon May 30, 2011 10:04 pm

Thanks for your reply, kmihelich.
Sorry to push on this, but what does pacman -Syu(f??) do that pacman -Sy doesn't do? Because pacman -Sy broke SSH for me. Will pacman -Syu upgrade SSH as well, so that it works with the new krb5 package?
kemifl
 
Posts: 2
Joined: Mon May 30, 2011 7:08 pm

Re: [Solved] Samba install breaks sshd - cannot login

Postby kmihelich » Mon May 30, 2011 10:26 pm

Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm


Return to Packages

Who is online

Users browsing this forum: No registered users and 14 guests