Sublime Forum

Debian: unable to install deb package due to unmet dependencies when packages are actually installed

#1

I’m trying to install ST4 manually in separate directory, when still using ST3.
It complains about unment dependancies, while I have installed mentioned packages.
What is going on?

> sudo dpkg --install --root=/opt/sublime_text_4 sublime-text_build-4173_amd64.deb
(Reading database ... 120 files and directories currently installed.)
Preparing to unpack sublime-text_build-4173_amd64.deb ...
Unpacking sublime-text (4173) over (4173) ...
dpkg: dependency problems prevent configuration of sublime-text:
 sublime-text depends on libgtk-3-0; however:
  Package libgtk-3-0 is not installed.
 sublime-text depends on libcurl3 | libcurl4; however:
  Package libcurl3 is not installed.
  Package libcurl4 is not installed.

> dpkg --status libgtk-3-0
Package: libgtk-3-0
Status: install ok installed
Priority: optional
Section: libs

> dpkg --status libcurl4
Package: libcurl4
Status: install ok installed
Priority: optional
Section: libs
0 Likes

#2

--root changes the root path (chroot), making an entirely separated package system. Those dependencies like libgtk-3-0 are not installed in /opt/sublime_text_4 and so it fails to install. dpkg does not have a way to install in a separate location how you want it to.

Since you’re manually installing anyway I suggest using the tarball instead of the debian package: https://www.sublimetext.com/download.

2 Likes