急求安装smbfs,cifs

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
igo
帖子: 3
注册时间: 2015-07-16 14:00

急求安装smbfs,cifs

#1

帖子 igo » 2015-07-16 15:39

用sudo apt-get install smbfs-tools 和sudo apt-get install cifs-tools有几台机器可以正常安装,但是好几台报错:
sudo apt-get install smbfs-tools
Reading Paekage lists...Done
Building dependency tree
Reading state information...Done
E:Unable to locate package smbfs-tools

sudo apt-get install cifs-tools
Reading Paekage lists...Done
Building dependency tree
Reading state information...Done
E:Unable to locate package cifs-tools
请问高手要怎么解决,本人急需将Windows的共享目录挂载到Ubuntu上。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 急求安装smbfs,cifs

#2

帖子 poloshiao » 2015-07-16 21:51

1. ubuntu 套件庫 沒有 smbfs-tools 套件
http://packages.ubuntu.com/search?suite ... ds=postfix

2. ubuntu 套件庫 沒有 cifs-tools 套件
http://packages.ubuntu.com/search?suite ... chon=names
用sudo apt-get install smbfs-tools 和sudo apt-get install cifs-tools有几台机器可以正常安装
3. 請確認 Ubuntu 版本
本人急需将Windows的共享目录挂载到Ubuntu上。
4. 參見
https://help.ubuntu.com/community/Samba ... lientGuide
igo
帖子: 3
注册时间: 2015-07-16 14:00

Re: 急求安装smbfs,cifs

#3

帖子 igo » 2015-07-17 8:56

poloshiao 写了:1. ubuntu 套件庫 沒有 smbfs-tools 套件
http://packages.ubuntu.com/search?suite ... ds=postfix

2. ubuntu 套件庫 沒有 cifs-tools 套件
http://packages.ubuntu.com/search?suite ... chon=names
用sudo apt-get install smbfs-tools 和sudo apt-get install cifs-tools有几台机器可以正常安装
3. 請確認 Ubuntu 版本
本人急需将Windows的共享目录挂载到Ubuntu上。
4. 參見
https://help.ubuntu.com/community/Samba ... lientGuide
系统是国外客户装好的,一共有8台机器,有3台可以用sudo apt-get install smbfs-tools 命令安装后用Cifs来挂载局域网的Windows共享目录。
另外5台就不行,问客户说都是一样安装的,每台版本查过了都一样。
Ubuntu的版本号是12.04.4 LTS
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 急求安装smbfs,cifs

#4

帖子 poloshiao » 2015-07-17 9:58

1. 套件 cifs-utils
http://packages.ubuntu.com/search?suite ... chon=names

https://wiki.ubuntu.com/MountWindowsSha ... stallation
sudo apt-get install cifs-utils

2. 套件 samba-tools
http://packages.ubuntu.com/search?suite ... chon=names
來自 universe 套件庫
意思是 需要先把 universe 套件庫 加入 軟體來源

3. 有關 samba client 端
https://help.ubuntu.com/community/Mount ... ermanently
https://help.ubuntu.com/community/Samba ... lientGuide
https://wiki.ubuntu.com/MountWindowsSharesPermanently
http://manpages.ubuntu.com/manpages/pre ... ifs.8.html
https://wiki.samba.org/index.php/LinuxCIFS_utils
http://wiki.robotz.com/index.php/Linux_ ... _and_Samba
有3台可以用sudo apt-get install smbfs-tools 命令安装
試試
sudo dpkg -l | grep smbfs-tools
有沒有已經成功安裝 smbfs-tools 套件
igo
帖子: 3
注册时间: 2015-07-16 14:00

Re: 急求安装smbfs,cifs

#5

帖子 igo » 2015-07-17 14:37

可以使用以下列表中的任何一个源镜像只要往您的 /etc/apt/sources.list 文件中像下面这样添加一行:

deb http://security.ubuntu.com/ubuntu precise-security main universe

再用sudo apt-get install smbfs-tools 会有反应,显示完成100%,但还是冒出如下:
E:Unable to locate package smbfs-tools

按你说的sudo dpkg -l | grep smbfs-tools 这个没反应
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 急求安装smbfs,cifs

#6

帖子 poloshiao » 2015-07-17 17:44

sudo dpkg -l | grep smbfs-tools 这个没反应
1. 表示 沒安裝 smbfs-tools 套件
可以使用以下列表中的任何一个源镜像只要往您的 /etc/apt/sources.list 文件中像下面这样添加一行:
deb http://security.ubuntu.com/ubuntu precise-security main universe
2. 一般 在 http://security.ubuntu.com/ubuntu precise-security main universe
有的套件
http://security.ubuntu.com/ubuntu/pool/main/s/
應該有
但是
http://security.ubuntu.com/ubuntu/pool/main/s/
並沒有 smbfs-tools

3. 一般 在 http://security.ubuntu.com/ubuntu precise-security universe
http://security.ubuntu.com/ubuntu/pool/universe/s/
應該有
但是
http://security.ubuntu.com/ubuntu/pool/universe/s/
並沒有 smbfs-tools
再用sudo apt-get install smbfs-tools 会有反应,显示完成100%,但还是冒出如下:
E:Unable to locate package smbfs-tools
4. 表示找不到 smbfs-tools
回复