在 AWS Ubuntu 14.04.1 LTS 上安装 sublime text 3 [英] Installing sublime text 3 on AWS Ubuntu 14.04.1 LTS

查看:38
本文介绍了在 AWS Ubuntu 14.04.1 LTS 上安装 sublime text 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Sublime-text 是适用于 Windows 和 Linux 的快速编辑器.我无法使用以下命令在 AWS Ubuntu 14.04.1 LTS 上安装 sublime text 3:

Sublime-text is a fast editor for Windows and Linux. I failed to install sublime text 3 on AWS Ubuntu 14.04.1 LTS using the following commands:

sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer

导致以下错误消息:

p: cannot create regular file "/usr/share/icons/hicolor/16x16/apps/": 
No such file or directory dpkg: error processing package sublime-text-installer (--configure):
subprocess installed post-installation script returned error exit status 1 

我在/usr/share/icons/hicolor/下看到以下目录324864所以,我创建了 16x16 子目录,但是它给出了 32x32 目录不存在的错误.有没有人遇到过这个问题?我将不胜感激.

I see following directories under /usr/share/icons/hicolor/ 32 48 64 So, I created 16x16 subdirectory, but then it gives an error for 32x32 directory doesnot exist. Did anyone experience this problem before? I will appreciate any help.

推荐答案

sublime-text 是一个需要安装 GTK 的 GUI 应用程序.您的服务器缺少该依赖项.(在完美世界中,它当然应该是包的依赖项.)

sublime-text is a GUI application that needs a GTK installation. Your server is missing that dependency. (In a perfect world, it should be a dependency of the package of course.)

安装 libgtk2(以 root 身份):

Install libgtk2 (as root):

apt-get install libgtk2.0-common

然后重新安装 sublime-text,可能使用:

and then reinstall sublime-text, probably using:

apt-get purge sublime-text-installer ; apt-get install sublime-text-installer

这篇关于在 AWS Ubuntu 14.04.1 LTS 上安装 sublime text 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆