0

I'm trying to remove sublime 3 but I have an error:

$ sudo apt-get remove sublime-text-installer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: The package sublime-text needs to be reinstalled, but I can't find an archive for it.

I tried this answer but still getting the same error:

$ sudo apt-get purge sublime-text
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: The package sublime-text needs to be reinstalled, but I can't find an archive for it.

$ sudo apt-get autoremove Reading package lists... Done Building dependency tree
Reading state information... Done E: The package sublime-text needs to be reinstalled, but I can't find an archive for it.

Any ideas?

I'm ok Kubuntu 16.10.

EDIT:

I interrupted sublime installation process, could it be causing this bug?

First:

$ sudo add-apt-repository ppa:webupd8team/sublime-text-3

Sublime Text 3 Installer: the package in this PPA downloads and installs the latest Sublime Text 3 beta builds.

For more info, see: http://www.webupd8.org/2013/07/sublime-text-3-ubuntu-ppa-now-available.html
 More info: https://launchpad.net/~webupd8team/+archive/ubuntu/sublime-text-3
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keybox '/tmp/tmp35ijqt87/pubring.gpg' created
gpg: /tmp/tmp35ijqt87/trustdb.gpg: trustdb created
gpg: key C2518248EEA14886: public key "Launchpad VLC" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1
OK

Then:

$ sudo apt-get update

Hit:1 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu yakkety InRelease                                                                                                    
Hit:2 http://ppa.launchpad.net/webupd8team/sublime-text-2/ubuntu yakkety InRelease                                                                                               
Get:3 http://security.ubuntu.com/ubuntu yakkety-security InRelease [102 kB]                                                                                                      
Hit:4 https://deb.opera.com/opera-stable stable InRelease                                                                 
Hit:5 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu yakkety InRelease                                                                   
Hit:6 https://deb.nodesource.com/node_6.x yakkety InRelease                                                                    
Hit:7 http://gb.archive.ubuntu.com/ubuntu yakkety InRelease                                                                                                                      
Get:8 http://gb.archive.ubuntu.com/ubuntu yakkety-updates InRelease [102 kB]
Hit:9 http://gb.archive.ubuntu.com/ubuntu yakkety-backports InRelease                                                                                                            
Fetched 204 kB in 2min 17s (1,486 B/s)                                                                                                                                           
Reading package lists... Done

Then:

$ sudo apt-get install sublime-text-installer

But it was too slow so I ended it.

EDIT 2:

$ dpkg -l *sublime* | grep -i sublime
iHR sublime-text           3126             amd64        (no description available)
iHR sublime-text-installer 3126-2~webupd8~1 all          (no description available)
Run
  • 2,748

3 Answers3

1

try these steps

  • Configure interrupted packages sudo dpkg --configure -a
  • fix broken dependencies sudo apt --fix-broken install
  • remove unneeded packages sudo apt-get clean && sudo apt-get autoclean && sudo apt-get autoremove
  • uninstall sublime-text sudo apt-get purge sublime-text

That should do it.

Sirajus Salekin
  • 1,737
  • 13
  • 29
0

try

sudo dpkg --remove --force-all sublime-text
0

If these package don't appear in Synaptic (it seems that you have both -2 and -3 ppas installed), you'll find the .deb files here...

https://launchpad.net/~webupd8team/+archive/ubuntu/sublime-text-3/+files/sublime-text-installer_3126-2~webupd8~1_all.deb

https://launchpad.net/~webupd8team/+archive/ubuntu/sublime-text-2/+files/sublime-text_2.0.2-1~webupd8~3_all.deb

... just try the first link first.

heynnema
  • 73,649