DIGITory/.......2015.05.10 17:06

Sublime Text 2 

: view - show console (or ctrl + `)

then put this command


import urllib2,os; pf='Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler( ))); open( os.path.join( ipp, pf), 'wb' ).write( urllib2.urlopen( 'http://sublime.wbond.net/' +pf.replace( ' ','%20' )).read()); print( 'Please restart Sublime Text to finish installation')


command for Sublime Text 3


import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())

Posted by Joe.C
DIGITory/Ubuntu2015.04.15 09:27

Error Msg :

W: GPG error: http://[UBUNTU SERVER ADDRESS] precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY XXXXXXXXXXXXXXXX


1. 제대로된 키를 가져와서 import 시키기

wget -O - http://[Repository which has a key]/[key_file] | sudo apt-key add - ; wget http://[Repository which has a key]/[key_file] ; gpg --import dpi_package_key ; rm -f ./dpi_package_key


2. 혹은...

W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6AF0E1940624A220

에러를 만난 어떤 사람의 방법.....1

Run the following command - 
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6AF0E1940624A220This did not solve my problem. I got connection timed out.
Generally Ubuntu key-server uses port 11371 which may be blocked by tour firewall. So you can use 80 as the port - 
sudo gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 6AF0E1940624A220 - See more at: http://opensourceforgeeks.blogspot.in/2013/04/w-gpg-error-httpppalaunchpadnet-precise.html#sthash.aQJUZnbW.dpuf


방법 2

   If the command are not doing it for you, you have to do it on your own. After a long research on this problem i finally decided that the best thing to do was manually download the key and add it.This is how i did it. Go to Ubuntu Key-server(keyserver.ubuntu.com). Here you can search your key. In my case it was 6AF0E1940624A220. Note while searching for key pre-append the key with 0x. So search for 0x6AF0E1940624A220 

Once you have copied the data to file. Save it. Then run the following command
sudo apt-key add key1 

You will get an "OK" response.

aniket@aniket-Compaq-610:~/Desktop$ sudo apt-key add key1
[sudo] password for aniket: 
OK


And you are done. Repeat the procedure of other keys that might be missing.
Then you can run
sudo apt-get update
and you will not get any error. Update happens smoothly. Do let me know if you still have any doubts.


(from "http://opensourceforgeeks.blogspot.in/2013/04/w-gpg-error-httpppalaunchpadnet-precise.html")




Posted by Joe.C
schoolwork2015.03.12 19:28

깐깐하게 배우는 파이썬 - 2.4 (2.16)

Sublime Text 따라잡기 : 강력한 에디터와 플러그인 활용이 가능한 차세대 IDE - 1.4 (1.26)

자바+안드로이드를 다루는 기술 실무에서 알아야 할 기술은 따로 있다! - 3.6

Software Engineering : A Practitioner's Approach 8/E - 3.5

[외서] UML Distilled : A Brief Guide to the Standard Object Modeling Language(Paperback, 3/E)  - 2.6

'schoolwork' 카테고리의 다른 글

살 책 목록  (0) 2015.03.12
Posted by Joe.C