LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Upgrading samba. (https://www.linuxquestions.org/questions/linux-software-2/upgrading-samba-250013/)

Badfish 11-01-2004 07:20 PM

Upgrading samba.
 
So i currently have samba Version 2.2.7a and want to upgrade to 3.0.7-1
so i used wget to download the rpm file from samba.org and ran
rpm -ivh <file name>.tar.gz

then this is what follows:


[root@XXXXXX sambainstall]# rpm -ivh samba-3.0.7-1_rh9.i386.rpm
warning: samba-3.0.7-1_rh9.i386.rpm: V3 DSA signature: NOKEY, key ID 2f87af6f
Preparing... ########################################### [100%]
file /etc/rc.d/init.d/winbind from install of samba-3.0.7-1 conflicts wi
th file from package samba-common-2.2.7a-8.9.0
file /etc/samba/smb.conf from install of samba-3.0.7-1 conflicts with fi
le from package samba-common-2.2.7a-8.9.0
file /lib/libnss_winbind.so.2 from install of samba-3.0.7-1 conflicts wi
th file from package samba-common-2.2.7a-8.9.0
file /lib/libnss_wins.so.2 from install of samba-3.0.7-1 conflicts with
file from package samba-common-2.2.7a-8.9.0
file /lib/security/pam_winbind.so from install of samba-3.0.7-1 conflict
s with file from package samba-common-2.2.7a-8.9.0
file /usr/bin/smbpasswd from install of samba-3.0.7-1 conflicts with fil
e from package samba-common-2.2.7a-8.9.0
file /usr/bin/testparm from install of samba-3.0.7-1 conflicts with file
from package samba-common-2.2.7a-8.9.0



i have shut down smbd service and even tried as root.

anyone seen this before or have a url to a link somewhere?

thanks.

trickykid 11-01-2004 07:30 PM

rpm -ivh will only install.. if your upgrading with rpm's and the previous version was installed with rpm.. do a:

rpm -Uvh <package-name>

Badfish 11-01-2004 08:11 PM

Ok, so i tried that and this is what i got.



[root@firegate sambainstall]# service smb status
smbd (pid 23976) is running...
nmbd (pid 23980) is running...
[root@firegate sambainstall]# rpm -Uvh samba-3.0.7-1_rh9.i386.rpm
warning: samba-3.0.7-1_rh9.i386.rpm: V3 DSA signature: NOKEY, key ID 2f87af6f
Preparing... ########################################### [100%]
1:samba warning: /etc/samba/smb.conf created as /etc/samba/smb.conf.rpmnew
########################################### [100%]
Moving tdb files in /var/cache/samba/*.tdb to /var/lib/samba/*.tdb
Moving /var/cache/samba/connections.tdb to /var/lib/samba/connections.tdb
Moving /var/cache/samba/messages.tdb to /var/lib/samba/messages.tdb
Moving /var/cache/samba/unexpected.tdb to /var/lib/samba/unexpected.tdb
Installing stack version of /etc/pam.d/samba...
error: %postun(samba-2.2.7a-8.9.0) scriptlet failed, exit status 1



All times are GMT -5. The time now is 11:23 AM.