I installed Sublime using instruction on https://www.sublimetext.com/docs/3/linux_repositories.html
for apt Ubuntu. I have Linux mint. But I got build 3103. I could not find any mention about this problem in Internet. Help me please to install new build.
Problem with install
I use the instruction on the site sublimetext:
Install the GPG key:
wget -qO - here is link | sudo apt-key add -
Ensure apt is set up to work with https sources:
sudo apt-get install apt-transport-https
Select the channel to use:
Stable
echo "deb here is link | sudo tee /etc/apt/sources.list.d/sublime-text.list
Dev
echo "deb here islink | sudo tee /etc/apt/sources.list.d/sublime-text.list
Update apt sources and install Sublime Text
sudo apt-get update
sudo apt-get install sublime-text
used one after one. first time I use instruction for Stable. Then I deleted program and tried Dev channel. Both result were the same. There was installed Sublime but build3103.
When I open Sublime I have a massage : A new version of Sublime Text is available, download now?
olga@olga-X550CC ~ $ apt search sublime-text
i sublime-text - Sublime Text is a sophisticated text edito
p sublime-text:i386 - Sublime Text is a sophisticated text edito
Looks like you’re using an older version of apt
, and the output has been cut off. Could you try apt-cache show sublime-text
please.
olga@olga-X550CC ~ $ apt-cache show sublime-text
Package: sublime-text
Priority: optional
Section: editors
Installed-Size: 34059
Maintainer: Sublime HQ Pty Ltd support@sublimetext.com
Architecture: amd64
Version: 3210
Depends: libgtk-3-0
Filename: files/sublime-text_build-3210_amd64.deb
Size: 9840912
MD5sum: 1fbee3c68461edb852dd5643573c55b8
SHA1: ef6763715ac2df583ab389b431e8d12bb44ead03
SHA256: ad3f2838a47741ad2b442b59049785ad9bcd04c5980eaea79b4444e43f2b76db
SHA512: 44c00ddcc866882ec2d2eb062dd6f7d348bebfb8e889503a2ae1230a8301aa0a6876d0f86fd49c66835027b265336348e313d9b57240a7861ceb942b9c49123e
Description: Sublime Text is a sophisticated text editor for code, markup and prose
Description-md5: 16307a1906c33fc4b032ad0980022c14
Package: sublime-text
Version: 3103
Architecture: amd64
Maintainer: Sublime HQ support@sublimetext.com
Priority: optional
Section: editors
Filename: pool/main/s/sublime-text/sublime-text_3103_amd64.deb
Size: 6513474
SHA256: 31a82535052ec3a08e340d419f0f4b3647af29acbacafcf21072c47967b49c16
SHA1: 0d00fb0845087cc2f5aea7f97481d20b485b412e
MD5sum: 28ed80156acd3fdcbaa22e90f8c4c6c6
Description: Sublime Text is a sophisticated text editor for code, markup and prose
Description-md5: 16307a1906c33fc4b032ad0980022c14
Installed-Size: 14200
Thank you for help!
Are you sure you ran apt-get update
? Run it again and then see what apt-cache says.
olga@olga-X550CC ~ $ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
olga@olga-X550CC ~ $ apt-cache
apt 1.0.1ubuntu2.24 for amd64 compiled on Oct 10 2019 22:48:22
Usage: apt-cache [options] command
apt-cache [options] showpkg pkg1 [pkg2 …]
apt-cache [options] showsrc pkg1 [pkg2 …]
apt-cache is a low-level tool used to query information
from APT’s binary cache files
Commands:
gencaches - Build both the package and source cache
showpkg - Show some general information for a single package
showsrc - Show source records
stats - Show some basic statistics
dump - Show the entire file in a terse form
dumpavail - Print an available file to stdout
unmet - Show unmet dependencies
search - Search the package list for a regex pattern
show - Show a readable record for the package
depends - Show raw dependency information for a package
rdepends - Show reverse dependency information for a package
pkgnames - List the names of all packages in the system
dotty - Generate package graphs for GraphViz
xvcg - Generate package graphs for xvcg
policy - Show policy settings
Options:
-h This help text.
-p=? The package cache.
-s=? The source cache.
-q Disable progress indicator.
-i Show only important deps for the unmet command.
-c=? Read this configuration file
-o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
See the apt-cache(8) and apt.conf(5) manual pages for more information.
You need to run apt-get update
as root, as the error message is telling you. Run sudo apt-get update
.
When I said “see what apt-cache says”, I meant re-run the previous apt cache command…
olga@olga-X550CC ~ $ sudo apt-get update
[sudo] password for olga:
…
Fetched 14,9 kB in 7s (1 874 B/s)
Reading package lists… Done
olga@olga-X550CC ~ $ apt-cache
apt 1.0.1ubuntu2.24 for amd64 compiled on Oct 10 2019 22:48:22
Usage: apt-cache [options] command
apt-cache [options] showpkg pkg1 [pkg2 …]
apt-cache [options] showsrc pkg1 [pkg2 …]
apt-cache is a low-level tool used to query information
from APT’s binary cache files
Commands:
gencaches - Build both the package and source cache
showpkg - Show some general information for a single package
showsrc - Show source records
stats - Show some basic statistics
dump - Show the entire file in a terse form
dumpavail - Print an available file to stdout
unmet - Show unmet dependencies
search - Search the package list for a regex pattern
show - Show a readable record for the package
depends - Show raw dependency information for a package
rdepends - Show reverse dependency information for a package
pkgnames - List the names of all packages in the system
dotty - Generate package graphs for GraphViz
xvcg - Generate package graphs for xvcg
policy - Show policy settings
Options:
-h This help text.
-p=? The package cache.
-s=? The source cache.
-q Disable progress indicator.
-i Show only important deps for the unmet command.
-c=? Read this configuration file
-o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
See the apt-cache(8) and apt.conf(5) manual pages for more information.
Are there what you asked me to do?
I am so sorry, I feel I don’t understand you. And I don’t understand how this linux works.
I am sure I ran sudo apt-get update, and I also made update through Update Manager. Atom and Telegram were updated.But Where was some update for linux, but in the terminal I can see it is still “apt 1.0.1ubuntu2.24 for amd64 compiled on Oct 10 2019 22:48:22”
I tried to install sublime using Software Manager I had the same result. When I deleted it using Software Manager. after I ran in the terminal apt-cache show sublime-text. It show the same information:
Package: sublime-text
…
Version: 3210
Depends: libgtk-3-0
Filename: files/sublime-text_build-3210_amd64.deb
…
Package: sublime-text
Version: 3103
…
Filename: pool/main/s/sublime-text/sublime-text_3103_amd64.deb
is it what on my computer? why is here 2 versions
I tried again to install. Is it right way?
olga@olga-X550CC ~ $ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
[sudo] password for olga:
OK
olga@olga-X550CC ~ $ sudo apt-get install apt-transport-https
Reading package lists… Done
Building dependency tree
Reading state information… Done
apt-transport-https is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
olga@olga-X550CC ~ $ echo “… apt/stable/” | sudo tee /etc/apt/sources.list.d/sublime-text.list
deb https://download.sublimetext.com/ apt/stable/
olga@olga-X550CC ~ $ sudo apt-get update
…
Fetched 3 581 B in 7s (457 B/s)
Reading package lists… Done
olga@olga-X550CC ~ $ sudo apt-get install sublime-text
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
sublime-text
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/6 513 kB of archives.
After this operation, 14,5 MB of additional disk space will be used.
Selecting previously unselected package sublime-text.
(Reading database … 208748 files and directories currently installed.)
Preparing to unpack …/sublime-text_3103_amd64.deb …
Unpacking sublime-text (3103) …
Processing triggers for hicolor-icon-theme (0.13-1) …
Processing triggers for desktop-file-utils (0.22-1ubuntu1.1) …
Processing triggers for mime-support (3.54ubuntu1.1) …
Processing triggers for gnome-menus (3.10.1-0ubuntu2) …
Setting up sublime-text (3103) …
Of cause! I even feel more confident when do it.
olga@olga-X550CC ~ $ apt-cache madison sublime-text
sublime-text | 3211 | https://download.sublimetext.com/ apt/stable/ Packages
sublime-text | 3103 | http://extra.linuxmint.com/ rebecca/main amd64 Packages
olga@olga-X550CC ~ $ apt-cache policy sublime-text
sublime-text:
Installed: 3103
Candidate: 3103
Version table:
3211 0
500 …as previors…sublimetext.com/ apt/stable/ Packages
*** 3103 0
700 …as previors…linuxmint.com/ rebecca/main amd64 Packages
100 /var/lib/dpkg/status
As a new user I cannot use more then 2 links.
Looks like mint is repackaging Sublime Text, and that’s being preferred for some reason. Try sudo apt-get install sublime-text=3211
.
You are awesome!! I got it! Thanks a lot! You make a grate work helping people!
olga@olga-X550CC ~ $ sudo apt-get install sublime-text=3211
…
Setting up sublime-text (3211) …