在 Ubuntu 16.04 伺服器上安裝 xattr?

在 Ubuntu 16.04 伺服器上安裝 xattr?

這可能有點深奧,但我喜歡將硬體和軟體推向極限。我確信這很簡單,但與主流相差太遠,我沒有看到連接點。

我使用的是 ARM 64 位EspressoBin v7 SBC作為 Ubuntu 16.04 檔案伺服器。這濃縮咖啡桶有點打哈欠,因為董事會的能力遠遠不只是文件服務。在安裝並使用 Webmin、OpenVPN、proFTPD 和基於檔案服務的 LAMP Web 伺服器後,它繼續打哈欠。硬體非常棒,儘管文件確實令人失望。

我現在嘗試將 EspressoBin 配置為網域控制器。我已經用性能低得多的舊桌上型電腦完成了這項工作,因此 EspressoBin 應該能夠滿足需求,即使不是以法拉利速度。如果沒有,那也沒關係,但我真的很想有機會嘗試。

Kerberos 安裝和設定以及 Samba 設定失敗,因為它們需要安裝 xattr。網域控制器功能需要兩者。根據我的所有閱讀,xattr 應該已經與 xenial 一起安裝。

作為SoC,目前可用的鏡像是ubuntu-最小。我已經能夠從 ubuntu-minimal 升級並安裝許多最小化無法使用的軟體。

EspressoBin 從 ext4 格式的 microSD 卡啟動,並使用 U-Boot 控制啟動過程。

對於安裝 ubuntu-minimal 不可用的軟體,我更新了我的 /etc/apt/sources.list

deb http://ports.ubuntu.com/ubuntu-ports/ xenial main universe
deb http://ports.ubuntu.com/ubuntu-ports/ xenial-security main universe
deb http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main universe
# The following support installation of Webmin
deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

添加 Universe 是安裝大多數其他軟體所必需的。完成升級過程並安裝所有其他軟體包後,我嘗試過

sudo apt-get update
sudo apt-get install xattr

響應是

E: Unable to locate package xattr

我在packages.ubuntu.com上搜尋了xattr,得到的答覆是有6個結果,但沒有說明為什麼如果有6個結果,apt-get找不到它。

我承認這可能是一個簡單的答案,但我顯然遺漏了一些東西,這可能是因為絕大多數搜尋結果都集中在更傳統的硬體上。

Samba 設定期間收到的明確錯誤以 root 身分登入:

You are not root or your system do not support xattr, using tdb backend for attributes.
not using extended attributes to store ACLs and other metadata. If you intend to use this provision in production, rerun the script as root on a system supporting xattrs.

process_usershare_file: share name unknown service (snum == -1) contains invalid characters (any of %<>*?|/\+=;:",)
ERROR(<class 'samba.provision.ProvisioningError'>): Provision failed - ProvisioningError: Your filesystem or build does not support posix ACLs, which s3fs requires.  Try the mounting the filesystem with the 'acl' option.
File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 442, in run
nosync=ldap_backend_nosync, ldap_dryrun_mode=ldap_dryrun_mode)
File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 2172, in provision
skip_sysvolacl=skip_sysvolacl)
File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 1806, in provision_fill
names.domaindn, lp, use_ntvfs)
File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 1558, in setsysvolacl
raise ProvisioningError("Your filesystem or build does not support posix ACLs, which s3fs requires.  "

apt 策略 xattr python-xattr acl 返回

python-xattr:
  Installed: 0.7.8-3
  Candidate: 0.7.8-3
  Version table:
 *** 0.7.8-3 500
        500 http://ports.ubuntu.com/ubuntu-ports xenial/main arm64 Packages
        100 /var/lib/dpkg/status
acl:
  Installed: 2.2.52-3
  Candidate: 2.2.52-3
  Version table:
 *** 2.2.52-3 500
        500 http://ports.ubuntu.com/ubuntu-ports xenial/main arm64 Packages
        100 /var/lib/dpkg/status
N: Unable to locate package xattr

une2fs -l /dev/mmcblk0p1| grep '預設安裝選項:' 返回

Default mount options:    user_xattr acl

在運行良好的 xenial 桌面上

apt 策略 xattr python-xattr acl 返回

python-xattr:
  Installed: (none)
  Candidate: 0.7.8-3
  Version table:
     0.7.8-3 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
acl:
  Installed: 2.2.52-3
  Candidate: 2.2.52-3
  Version table:
 *** 2.2.52-3 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
N: Unable to locate package xattr

sudoune2fs-l/dev/sda1| grep '預設安裝選項:' 返回

Default mount options:    user_xattr acl

相關內容