无法安装包 matlab-psychtoolbox-3

问题描述

我按照以下 website 中的步骤安装 psychtoolBox,但是它一直显示无法找到软件包... 我已经看过这个 similar question 我假设安装了 Neurodebian nonfree ppa,因为 这种情况发生在我更新到 Ubuntu 21.04 之后,它在 20.04 下正常工作。代码显示在本节的末尾。我愿意提供任何进一步的信息,请帮忙。

输出

josh777@josh777-Surface-Book-3:~$ wget -O- http://neuro.debian.net/lists/hirsute.au.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
--2021-07-13 00:24:48--  http://neuro.debian.net/lists/hirsute.au.full
Resolving neuro.debian.net (neuro.debian.net)... 129.170.233.11
Connecting to neuro.debian.net (neuro.debian.net)|129.170.233.11|:80... connected.
HTTP request sent,awaiting response... 200 OK
Length: 316 [audio/basic]
Saving to: ‘STDOUT’

-                                 100%[=============================================================>]     316  --.-KB/s    in 0s      

deb http://mirror.aarnet.edu.au/pub/neurodebian data main contrib non-free
#deb-src http://mirror.aarnet.edu.au/pub/neurodebian data main contrib non-free
deb http://mirror.aarnet.edu.au/pub/neurodebian hirsute main contrib non-free
#deb-src http://mirror.aarnet.edu.au/pub/neurodebian hirsute main contrib non-free
2021-07-13 00:24:48 (73.3 MB/s) - written to stdout [316/316]

josh777@josh777-Surface-Book-3:~$ sudo apt-key adv --recv-keys --keyserver hkps://keyserver.ubuntu.com 0xA5D32F012649A5A9
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.HFxaCmjF60/gpg.1.sh --recv-keys --keyserver hkps://keyserver.ubuntu.com 0xA5D32F012649A5A9
gpg: key A5D32F012649A5A9: "NeuroDebian Archive Key <pkg-exppsy-maintainers@lists.alioth.debian.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
josh777@josh777-Surface-Book-3:~$ sudo apt-get update
Hit:1 http://mirror01.idc.hinet.net/ubuntu hirsute InRelease
Hit:2 http://mirror01.idc.hinet.net/ubuntu hirsute-updates InRelease                                                                   
Hit:3 http://mirror01.idc.hinet.net/ubuntu hirsute-backports InRelease                                                                 
Hit:4 http://mirror01.idc.hinet.net/ubuntu hirsute-security InRelease                                                                  
Hit:5 http://dl.google.com/linux/chrome/deb stable InRelease                                                                           
Get:6 http://tw.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                                                             
Hit:7 http://archive.canonical.com/ubuntu hirsute InRelease                                                                            
Get:8 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                                       
Hit:9 https://pkg.surfacelinux.com/debian release InRelease                 
Hit:10 http://mirror.aarnet.edu.au/pub/neurodebian data InRelease
Hit:11 http://mirror.aarnet.edu.au/pub/neurodebian hirsute InRelease
Get:12 http://mirror.aarnet.edu.au/pub/neurodebian data/non-free amd64 Packages [5961 B]
Get:13 http://mirror.aarnet.edu.au/pub/neurodebian data/non-free i386 Packages [5961 B]
Fetched 239 kB in 2s (97.2 kB/s)                            
Reading package lists... Done
josh777@josh777-Surface-Book-3:~$ sudo apt-get install matlab-psychtoolBox-3
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package matlab-psychtoolBox-3

解决方法

repo/repo 索引文件中似乎有一些错误?但是我们可以将两个主要的 Ubuntu 21.04 软件包从 http://neurodebian.ovgu.de/debian/pool/non-free/p/psychtoolbox-3-nonfree/ 下载到一个新的空文件夹(matlab-psychtoolbox-3 取决于 matlab-psychtoolbox-3-nonfree

wget http://neurodebian.ovgu.de/debian/pool/non-free/p/psychtoolbox-3-nonfree/matlab-psychtoolbox-3_3.0.17.6-1~nd110+1_all.deb

wget http://neurodebian.ovgu.de/debian/pool/non-free/p/psychtoolbox-3-nonfree/matlab-psychtoolbox-3-nonfree_3.0.17.6-1~nd110+1_amd64.deb

并使用 apt 安装,以安装依赖项:

cd new-folder/
sudo apt install ./*

.... 然后你会被要求提供 MATLAB 位置。

注意:来自 matlab-psychtoolbox-3-nonfree 的文件控制说

Depends: neurodebian-popularity-contest,psychtoolbox-3-lib (>= 3.0.17.6-1~nd110+1.dfsg),psychtoolbox-3-common (>= 3.0.17.6-1~nd110+1.dfsg),libx11-6,libxext6,libxfixes3,libxi6,freeglut3,libgl1-mesa-glx,libxmu6,libxpm4

...所以也许您还必须下载 neurodebian-popularity-contest,psychtoolbox-3-lib,psychtoolbox-3-common .