无法在 Ubuntu 16.04(64 位)上安装 Snap7 库
Unable to install Snap7 Library on Ubuntu 16.04 (64-bit)
我是 Linux 基于 OS 的新手(对 Snap7 非常陌生)。
尝试按照 - http://python-snap7.readthedocs.io/en/latest/installation.html 处的说明在 Ubuntu 机器上安装 Snap7 库。但是我在第 3 步
中遇到以下错误
E: Unable to locate package libsnap71
E: Unable to locate package libsnap7-dev
我不确定如何手动安装它,也不确定如何解决此安装问题,所以任何建议都很棒 :)
下面是 运行 "add repository" 命令后的日志副本:
administrator@*pc-name*:~/Documents/*folder*$ sudo apt-get update
Hit:1 http://au.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://au.archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]
Hit:3 http://au.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:4 http://au.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [299 kB]
Ign:5 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial InRelease
Get:6 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Get:7 http://au.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [184 kB]
Ign:8 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial Release
Ign:9 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en_AU
Ign:13 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en
Ign:14 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:15 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main DEP-11 64x64 Icons
Ign:9 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en_AU
Ign:13 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en
Ign:14 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:15 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main DEP-11 64x64 Icons
Ign:9 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en_AU
Ign:13 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en
Ign:14 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:15 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main DEP-11 64x64 Icons
Ign:9 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en_AU
Ign:13 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en
Ign:14 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:15 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main DEP-11 64x64 Icons
Ign:9 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en_AU
Ign:13 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en
Ign:14 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:15 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main DEP-11 64x64 Icons
Err:9 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 Packages
404 Not Found
Ign:10 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en_AU
Ign:13 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en
Ign:14 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:15 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main DEP-11 64x64 Icons
Fetched 673 kB in 13s (50.9 kB/s)
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/gijzelaar/snap7/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
administrator@*pc-name*:~/Documents/*folder*$ sudo apt-get install libsnap71 libsnap7-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libsnap71
E: Unable to locate package libsnap7-dev
如果您需要更多信息来做出正确的评估,请告诉我。
您在链接到的页面上错过了这一部分:
If you are using Ubuntu you can use the Ubuntu packages from our launchpad PPA.
To install:
$ sudo add-apt-repository ppa:gijzelaar/snap7
$ sudo apt-get update
$ sudo apt-get install libsnap71 libsnap7-dev
按顺序执行所有三个命令,应该没问题。 但是,由于软件比您的系统旧,您需要编辑第一步后创建的/etc/apt/sources.d
文件并替换xenial
(甚至yaketty
) 与 trusty
。 ppa 只有旧版本的构建。
目前效果很好,使用说明here
$ sudo add-apt-repository ppa:gijzelaar/snap7
$ sudo apt-get update
$ sudo apt-get install libsnap7-dev libsnap7-1
我是 Linux 基于 OS 的新手(对 Snap7 非常陌生)。 尝试按照 - http://python-snap7.readthedocs.io/en/latest/installation.html 处的说明在 Ubuntu 机器上安装 Snap7 库。但是我在第 3 步
中遇到以下错误E: Unable to locate package libsnap71
E: Unable to locate package libsnap7-dev
我不确定如何手动安装它,也不确定如何解决此安装问题,所以任何建议都很棒 :)
下面是 运行 "add repository" 命令后的日志副本:
administrator@*pc-name*:~/Documents/*folder*$ sudo apt-get update
Hit:1 http://au.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://au.archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]
Hit:3 http://au.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:4 http://au.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [299 kB]
Ign:5 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial InRelease
Get:6 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Get:7 http://au.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [184 kB]
Ign:8 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial Release
Ign:9 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en_AU
Ign:13 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en
Ign:14 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:15 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main DEP-11 64x64 Icons
Ign:9 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en_AU
Ign:13 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en
Ign:14 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:15 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main DEP-11 64x64 Icons
Ign:9 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en_AU
Ign:13 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en
Ign:14 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:15 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main DEP-11 64x64 Icons
Ign:9 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en_AU
Ign:13 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en
Ign:14 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:15 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main DEP-11 64x64 Icons
Ign:9 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en_AU
Ign:13 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en
Ign:14 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:15 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main DEP-11 64x64 Icons
Err:9 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 Packages
404 Not Found
Ign:10 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en_AU
Ign:13 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main Translation-en
Ign:14 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:15 http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial/main DEP-11 64x64 Icons
Fetched 673 kB in 13s (50.9 kB/s)
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/gijzelaar/snap7/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/gijzelaar/snap7/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
administrator@*pc-name*:~/Documents/*folder*$ sudo apt-get install libsnap71 libsnap7-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libsnap71
E: Unable to locate package libsnap7-dev
如果您需要更多信息来做出正确的评估,请告诉我。
您在链接到的页面上错过了这一部分:
If you are using Ubuntu you can use the Ubuntu packages from our launchpad PPA.
To install:
$ sudo add-apt-repository ppa:gijzelaar/snap7
$ sudo apt-get update
$ sudo apt-get install libsnap71 libsnap7-dev
按顺序执行所有三个命令,应该没问题。 但是,由于软件比您的系统旧,您需要编辑第一步后创建的/etc/apt/sources.d
文件并替换xenial
(甚至yaketty
) 与 trusty
。 ppa 只有旧版本的构建。
目前效果很好,使用说明here
$ sudo add-apt-repository ppa:gijzelaar/snap7
$ sudo apt-get update
$ sudo apt-get install libsnap7-dev libsnap7-1