Sublime Forum

Cannot open sublime text without sudo

#1

Hello, I tried to open sublime-text with GUI but it doesn’t work.
It was opened, but automatically closed after running for a few seconds.
In terminal I typed subl, it stucks (nothing happened, but ctrl+c can jumped out)
Use sudo is fine, but it is quite inconvenient for me.
I have reinstalled it several times, but problem cannot be fixed.
How to solve this?

0 Likes

#2

What version are you using? What platform are you on?

0 Likes

#3

Hello, sorry for replying late.
From terminal, I use:

Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal

Type sudo subl on terminal, help->About Sublime Text gave me this:

Stable Channel, Build 4113

Thank you.

0 Likes

#4

Did you install from our debian repository or something else?

0 Likes

#5

No, I just follow document to install the packge then don’t works:
https://www.sublimetext.com/docs/linux_repositories.html#apt
It’s there any way can check if it’s ubuntu problem?
Because use visual machine(e.g. vmware) install clean system does not encounter any problems.

0 Likes

#6

It’s certainly a problem with your installation; we primarily use ubuntu 20.04. What’s the output from ls -al /opt/sublime_text?

0 Likes

#7

here’s the output from terminal:

ls -al /opt/sublime_text
total 32468
drwxr-xr-x 5 root root 4096 八 13 22:08 .
drwxr-xr-x 6 root root 4096 八 13 22:08 …
-rw-r–r-- 1 root root 38384 七 14 12:10 changelog.txt
-rwxr-xr-x 1 root root 1013264 七 14 12:10 crash_reporter
drwxr-xr-x 7 root root 4096 八 13 22:08 Icon
drwxrwxr-x 5 root root 4096 八 13 22:08 Lib
-rw-r–r-- 1 root root 4012864 四 2 10:30 libcrypto.so.1.1
-rw-r–r-- 1 root root 871520 四 2 10:30 libssl.so.1.1
drwxr-xr-x 2 root root 4096 八 13 22:08 Packages
-rwxr-xr-x 1 root root 8838640 七 14 12:10 plugin_host-3.3
-rwxr-xr-x 1 root root 9994312 七 14 12:10 plugin_host-3.8
-rwxr-xr-x 1 root root 8444856 七 14 12:10 sublime_text

Sorry for the late reply, because I am too busy at work.

0 Likes

#8

Does running the executable directly work? ie. /opt/sublime_text/sublime_text

0 Likes