下载并运行后sudo dpkg --install afpfs-ng_0.8.1-1_i386.deb
我得到
Selecting previously unselected package afpfs-ng:i386.
(Reading database ... 120690 files and directories currently installed.)
Preparing to unpack afpfs-ng_0.8.1-1_i386.deb ...
Unpacking afpfs-ng:i386 (0.8.1-1) ...
dpkg: dependency problems prevent configuration of afpfs-ng:i386:
afpfs-ng:i386 depends on libc6 (>= 2.6-1).
afpfs-ng:i386 depends on libfuse2 (>= 2.6).
afpfs-ng:i386 depends on libgcrypt11 (>= 1.2.2).
afpfs-ng:i386 depends on libncurses5 (>= 5.6).
afpfs-ng:i386 depends on libreadline5 (>= 5.2).
dpkg: error processing package afpfs-ng:i386 (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
afpfs-ng:i386
我sudo dpkg --add-architecture i386
至今为止也已经执行过了。
有办法安装它吗?还是我需要从某处获取 64 位版本?
答案1
可以使用软件包安装 64 位软件包来自 Ubuntu 14.04 LTS。
要下载并安装软件包,请使用以下命令:
mkdir ~/Downloads/afpfs-ng
cd ~/Downloads/afpfs-ng
wget -c http://archive.ubuntu.com/ubuntu/pool/main/r/readline6/libreadline6_6.3-4ubuntu2_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/main/libg/libgcrypt11/libgcrypt11_1.5.3-2ubuntu4.6_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/a/afpfs-ng/libafpclient0_0.8.1-5ubuntu1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/main/e/eglibc/multiarch-support_2.19-0ubuntu6.15_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/a/afpfs-ng/afpfs-ng-utils_0.8.1-5ubuntu1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/a/afpfs-ng/afpfs-ng_0.8.1-5ubuntu1_all.deb
sudo apt-get install ./afpfs-ng_0.8.1-5ubuntu1_all.deb ./afpfs-ng-utils_0.8.1-5ubuntu1_amd64.deb ./libafpclient0_0.8.1-5ubuntu1_amd64.deb ./libreadline6_6.3-4ubuntu2_amd64.deb ./multiarch-support_2.19-0ubuntu6.15_amd64.deb ./libgcrypt11_1.5.3-2ubuntu4.6_amd64.deb
然后使用其可执行文件:
/usr/bin/afpcmd
/usr/bin/afpgetstatus
/usr/bin/afpfsd
/usr/bin/mount_afp
/usr/bin/afp_client
答案2
Ubuntu 已经删除了afpfs-ng
。您可以使用afpfs-ng
其他发行版的软件包。我将 ArchLinux 的 deb 包放入 Github repohttps://github.com/maxx27/afpfs-ng-deb
因此你可以像这样使用它:
wget https://raw.githubusercontent.com/maxx27/afpfs-ng-deb/main/afpfs-ng.deb
sudo apt install ./afpfs-ng.deb
sudo mkdir -p /media/airport
sudo mount_afp afp://myuser:mypass@mycapsule/Data /media/airport
sudo ls /media/airport
sudo umount /media/airport