如何在openSUSE Leap 42.2上安装libXScrnSaver

时间:2016-12-07 08:52:13

标签: atom-editor opensuse

我想在运行 openSUSE Leap 42.2 的笔记本电脑上安装 Atom编辑器,我使用命令zypper in来安装rpm软件包,但它会提示错误信息

  

问题:atom-1.12.6-0.1.x86_64不需要提供 libXScrnSaver

flying@lempstacker:~> sudo zypper in ~/Downloads/atom-1.12.6-0.1.x86_64.rpm 
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides libXScrnSaver needed by atom-1.12.6-0.1.x86_64
 Solution 1: do not install atom-1.12.6-0.1.x86_64
 Solution 2: break atom-1.12.6-0.1.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c] (c): 

我正在使用的镜像官方存储库由aliyun提供,具体的配置命令是

sudo zypper mr -da
sudo zypper rr `zypper repos | awk '{if(NR>2)print $5}'`
sudo zypper ar -fcg http://mirrors.aliyun.com/opensuse/distribution/leap/42.2/repo/oss/ 'Aliyun-Leap-42.2-OSS'
sudo zypper ar -fcg http://mirrors.aliyun.com/opensuse/distribution/leap/42.2/repo/non-oss/ 'Aliyun-Leap-42.2-Non-OSS'
sudo zypper ar -fcg http://mirrors.aliyun.com/opensuse/update/leap/42.2/oss/ 'Aliyun-Leap-42.2-Update-OSS'
sudo zypper ar -fcg http://mirrors.aliyun.com/opensuse/update/leap/42.2/non-oss/ 'Aliyun-Leap-42.2-Update-Non-OSS'
sudo zypper ref

exectue command zypper repos

flying@lempstacker:~> zypper repos
# | Alias                           | Name                            | Enabled | GPG Check | Refresh
--+---------------------------------+---------------------------------+---------+-----------+--------
1 | Aliyun-Leap-42.2-Non-OSS        | Aliyun-Leap-42.2-Non-OSS        | Yes     | (r ) Yes  | Yes    
2 | Aliyun-Leap-42.2-OSS            | Aliyun-Leap-42.2-OSS            | Yes     | (r ) Yes  | Yes    
3 | Aliyun-Leap-42.2-Update-Non-OSS | Aliyun-Leap-42.2-Update-Non-OSS | Yes     | (r ) Yes  | Yes    
4 | Aliyun-Leap-42.2-Update-OSS     | Aliyun-Leap-42.2-Update-OSS     | Yes     | (r ) Yes  | Yes    
flying@lempstacker:~>

我试图搜索libXScrnSaver

通过命令zypper search

flying@lempstacker:~> zypper search libXScrnSaver
Loading repository data...
Reading installed packages...

S | Name                      | Summary                                                      | Type   
--+---------------------------+--------------------------------------------------------------+--------
  | libXScrnSaver-devel       | Development files for the X11 Screen Saver extension library | package
  | libXScrnSaver-devel-32bit | Development files for the X11 Screen Saver extension library | package
flying@lempstacker:~> 

通过命令zypper info

flying@lempstacker:~> zypper info libXScrnSaver
Loading repository data...
Reading installed packages...


package 'libXScrnSaver' not found.
flying@lempstacker:~> 

但除了libXScrnSaver-devel之外什么也没提供,即使我安装它也没用。

我关注了博客Install Slack on openSUSE Leap 42.1

它说只需要安装libXss1,但它已安装在我的操作系统上。

flying@lempstacker:~> sudo zypper in libXss1
Loading repository data...
Reading installed packages...
'libXss1' is already installed.
No update candidate for 'libXss1-1.2.2-11.19.x86_64'. The highest available version is already installed.
Resolving package dependencies...

Nothing to do.
flying@lempstacker:~>

我真的想知道如何解决这个问题!

谁能帮助我?

3 个答案:

答案 0 :(得分:0)

我在同一条船上。你有没有尝试过“破坏原子”的选项?通过忽略依赖关系?

我尝试使用这个opensuse软件页面,但我没有运气: https://software.opensuse.org/package/libXScrnSaver

当我尝试列出已安装的软件包时,我得到了一个开发版本:

linux-2472:/home/Downloads # rpm -qa | grep -i libxscr
libXScrnSaver-devel-1.2.2-11.19.x86_64

当我尝试安装libXScrnSaver(版本1.2.2-10)时,我得到:

linux-2472:/home/Downloads # zypper in ./libXScrnSaver-

1.2.2-10.1.src.rpm 
Loading repository data...
Reading installed packages...
'_tmpRPMcache_:libXScrnSaver=0:1.2.2-10.1' not found in package names. `Trying capabilities.`
No provider of '_tmpRPMcache_:libXScrnSaver=0:1.2.2-10.1' found.
Resolving package dependencies...

Nothing to do.

请注意,我的链接中有两个版本:1.2.2-10.1和1.2.2-23.1 No Luck。也许是那个tmprpmcache_包。我明天会试一下,已经很晚了。

答案 1 :(得分:0)

今天我在opensuse 42.2跳跃中遇到了同样的问题。 但选择解决方案2(通过忽略依赖关系来安装)工作得很好。

虽然根据这个链接在这里: https://github.com/atom/atom/issues/13354

libXScrnSaver不是它真正想要的那个,而是需要libXss.so.1

在rpm中编辑spec文件是建议的解决方案,虽然我不知道如何做到这一点。 这可能对您有所帮助: https://github.com/atom/atom/pull/13386

答案 2 :(得分:0)

似乎将在即将发布的版本中修复:https://github.com/atom/atom/pull/13386

我刚下载它并遇到了同样的问题。但是我已经安装了它甚至打破了依赖关系并且它没有问题(确保安装了libXss):

sudo rpm -i --nodeps atom.x86_64.rpm