在 Debian Stretch 上安装 Flameshot

在 Debian Stretch 上安装 Flameshot

我找到了这个程序火焰射击并尝试将其安装在Debian 拉伸,但得到信息:

E: Unable to locate package flameshot 

网站上有这样的信息:

Package for Debian 9 ("Stretch") also available via stretch-backports.

请告诉我如何通过安装它stretch-backports

我在每个条目旁边添加了stretch-backports字符串,但出现了一些错误,但有些条目没有给出错误:/etc/apt/source.liststretch main contrib non-freeupdate

s@lokal:~/Dropbox$ sudo apt update
Ign:1 http://ftp.task.gda.pl/debian stretch InRelease                                                                                                              
Hit:2 http://ftp.task.gda.pl/debian stretch-updates InRelease                                                                                                      
Hit:3 http://ftp.task.gda.pl/debian stretch Release                                                                  
Hit:4 http://security.debian.org/debian-security stretch/updates InRelease                                           
Hit:5 http://nginx.org/packages/debian stretch InRelease                                       
Ign:6 http://dl.google.com/linux/chrome/deb stable InRelease             
Hit:7 http://dl.google.com/linux/chrome/deb stable Release
Hit:8 https://packages.sury.org/php stretch InRelease
Hit:10 https://download.sublimetext.com apt/stable/ InRelease
Hit:11 https://download.sublimetext.com apt/dev/ InRelease
Reading package lists... Done 
E: Failed to fetch http://ftp.task.gda.pl/debian/dists/stretch/InRelease  Unable to find expected entry 'stretch-backports/source/Sources' in Release file (Wrong sources.list entry or malformed file)
E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/InRelease  Unable to find expected entry 'stretch-backports/source/Sources' in Release file (Wrong sources.list entry or malformed file)
E: Failed to fetch http://ftp.task.gda.pl/debian/dists/stretch-updates/InRelease  Unable to find expected entry 'stretch-backports/source/Sources' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
s@lokal:~/Dropbox$ 

问题依然存在:

s@lokal:~/Dropbox$ sudo apt-get install flameshot
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package flameshot
s@lokal:~/Dropbox$ 

如何安装火焰射击

答案1

它可用于拉伸向后移植:包装: 火焰弹

添加向后移植存储库。

更新和升级。

然后它应该可以安装。

答案2

安装火焰射击Debian 9“拉伸”将以下行添加到/etc/apt/sources.list文件中:

deb http://ftp.debian.org/debian stretch-backports main

保存上述文件后进行更新:

sudo apt update

更新后从反向移植安装软件包,使用apt标志-t来指定反向移植存储库:

apt-get -t stretch-backports install flameshot

然后你就有了火焰射击安装。

您可以通过键入以下命令从命令行运行它:

flameshot gui

相关内容