How to: Installing wget on Ubuntu Snappy Core

I installed Ubuntu Snappy Core, on my new Raspberry PI 2, then i wanted to install my SMART home software on it, but i discovered there is no wget command, and you can’t do “apt-get install wget” or “snappy install wget”, I found out you could use python and dpkg instead.

Paste the following into the terminal as root to install wget, on an arm based Snappy core:

mount -o rw,remount /
mkdir wget
cd wget
echo "import urllib2
response = urllib2.urlopen('http://http.us.debian.org/debian/pool/main/libt/libtasn1-3/libtasn1-3_2.13-2+deb7u2_armhf.deb')
html = response.read()
file_ = open('libtasn1-3_2.13-2+deb7u2_armhf.deb', 'w')
file_.write(html)
file_.close()
response = urllib2.urlopen('http://http.us.debian.org/debian/pool/main/g/gnutls26/libgnutls26_2.12.20-8+deb7u3_armhf.deb')
html = response.read()
file_ = open('libgnutls26_2.12.20-8+deb7u3_armhf.deb', 'w')
file_.write(html)
file_.close()
response = urllib2.urlopen('http://http.us.debian.org/debian/pool/main/w/wget/wget_1.13.4-3+deb7u2_armhf.deb')
html = response.read()
file_ = open('wget_1.13.4-3+deb7u2_armhf.deb', 'w')
file_.write(html)
file_.close()
response = urllib2.urlopen('http://http.us.debian.org/debian/pool/main/libg/libgcrypt11/libgcrypt11_1.5.0-5+deb7u3_armhf.deb')
html = response.read()
file_ = open('libgcrypt11_1.5.0-5+deb7u3_armhf.deb', 'w')
file_.write(html)
file_.close()" > wget.py
python wget.py
dpkg -i libtasn1-3_2.13-2+deb7u2_armhf.deb
dpkg -i libgcrypt11_1.5.0-5+deb7u3_armhf.deb
dpkg -i libgnutls26_2.12.20-8+deb7u3_armhf.deb
dpkg -i wget_1.13.4-3+deb7u2_armhf.deb
cd ../
rm -r wget

 

Lasse Hyldahl Jensen on EmailLasse Hyldahl Jensen on GithubLasse Hyldahl Jensen on GoogleLasse Hyldahl Jensen on InstagramLasse Hyldahl Jensen on LinkedinLasse Hyldahl Jensen on Twitter
Lasse Hyldahl Jensen

3 thoughts on “How to: Installing wget on Ubuntu Snappy Core

Leave a Reply