我使用一个名为 SimpleScreenRecorder 的程序来为 YouTube 录制视频。我在尝试启动它时遇到了问题,因此我决定重新安装它。当我尝试运行命令时,sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder
它告诉我以下内容:
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 91, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Ubuntu/xenial
当我运行时,这种情况不会发生sudo apt-get update
,并且它会说这个(以防万一这里也出现问题)
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Fetched 204 kB in 1s (178 kB/s)
Reading package lists... Done
当我尝试运行时,sudo apt-get install simplescreenrecorder
它给出了以下输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package simplescreenrecorder
并且 SimpleScreenRecorder 无法安装。当我尝试安装 LiVES 时,发生了完全相同的事情,甚至输出也相同,我遇到了相同的问题。
我正在运行 Ubuntu 16.04.2
答案1
最有可能的是,您的 /etc/apt/sources.list 文件中没有列出正确的存储库。维护安装的安装帮助页面位于此处http://www.maartenbaert.be/simplescreenrecorder/
它指示您使用以下命令添加 PPA:
sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder
sudo apt-get update
sudo apt-get install simplescreenrecorder
# if you want to record 32-bit OpenGL applications on a 64-bit system:
sudo apt-get install simplescreenrecorder-lib:i386
另外,请确保您已安装 software-properties-common,否则您将无法添加 PPA,如果出现错误,请尝试使用以下命令进行安装:
sudo apt-get install software-properties-common