码迷,mamicode.com
首页 > 其他好文 > 详细

安装samba软件包失败,求解?

时间:2015-05-31 01:35:10      阅读:333      评论:0      收藏:0      [点我收藏+]

标签:文件夹   光盘   软件包   

今天学习samba共享,samba软件包在挂载镜像光盘的情况下,可以安装成功。

我把镜像光盘中的所有文件拷贝到/var/ftp/pub/RedHat/5.9文件夹中,安装就出现下面的问题,求大师帮我看一下是什么原因,感谢!!!

[root@localhost ~]# rpm -q *samba*

 package *samba* is not installed 

[root@localhost ~]# cd /var/ftp/pub/RedHat/5.9/Server/ 

[root@localhost Server]# ls *samba* 

samba-3.0.33-3.39.el5_8.x86_64.rpm                       

samba-client-3.0.33-3.39.el5_8.x86_64.rpm 

samba3x-3.6.6-0.129.el5.x86_64.rpm                       

samba-common-3.0.33-3.39.el5_8.i386.rpm 

samba3x-client-3.6.6-0.129.el5.x86_64.rpm              

samba-common-3.0.33-3.39.el5_8.x86_64.rpm 

samba3x-common-3.6.6-0.129.el5.x86_64.rpm          

samba-swat-3.0.33-3.39.el5_8.x86_64.rpm 

samba3x-doc-3.6.6-0.129.el5.x86_64.rpm                  

sblim-cmpi-samba-1.0-49.el5.i386.rpm 

samba3x-domainjoin-gui-3.6.6-0.129.el5.x86_64.rpm       

sblim-cmpi-samba-1.0-49.el5.x86_64.rpm                 

samba3x-swat-3.6.6-0.129.el5.x86_64.rpm            

sblim-cmpi-samba-devel-1.0-49.el5.i386.rpm             

samba3x-winbind-3.6.6-0.129.el5.i386.rpm           

sblim-cmpi-samba-devel-1.0-49.el5.x86_64.rpm        

samba3x-winbind-3.6.6-0.129.el5.x86_64.rpm         

sblim-cmpi-samba-test-1.0-49.el5.x86_64.rpm           

samba3x-winbind-devel-3.6.6-0.129.el5.i386.rpm     

system-config-samba-1.2.41-5.el5.noarch.rpm        

samba3x-winbind-devel-3.6.6-0.129.el5.x86_64.rpm 

[root@localhost Server]# cd /etc/yum 

yum/         yum.conf     yum.repos.d/ 

[root@localhost Server]# cd /etc/yum.repos.d/ 

[root@localhost yum.repos.d]# ls 

rhel-debuginfo.repo 

[root@localhost yum.repos.d]# cp rhel-debuginfo.repo rhel5.repo 

[root@localhost yum.repos.d]# vim rhel5.repo 

1 [rhel5]

2 name =Red Hat Enterprise Linux

3 baseurl=file:///var/ftp/pub/RedHat/5.9/Server 

4 enabled=1

5 gpgcheck=1

6 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[root@localhost yum.repos.d]# yum -y install samba samba-client samba-common 

Loaded plugins: product-id, security, subscription-manager 

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. 

Config Error: File contains no section headers.

file: file://///etc/yum.repos.d/rhel5.repo, line: 1

‘[rhel5\n‘ 


安装samba软件包失败,求解?

标签:文件夹   光盘   软件包   

原文地址:http://niumin88.blog.51cto.com/10289119/1656673

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!