deepstreamIO / deepstream.io

deepstream.io server
https://deepstreamio.github.io
MIT License
7.14k stars 381 forks source link

Cannot add APT package to ubuntu (Malformed entry) #300

Closed timaschew closed 8 years ago

timaschew commented 8 years ago
root@ubuntu-deepstream-tutorial:~# apt-get update
E: Malformed entry 58 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.

Even if I type the line manually the entry is invalid.

Ubuntu 16.04.1 x64 (on digital ocean)

timaschew commented 8 years ago

changed to deb http://dl.bintray.com/deepstreamio/deb xenial partner then the command (apt-get update`) worked, but deepstream package still can't be found here is the log

root@ubuntu-deepstream-tutorial:~# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
Executing: /tmp/tmp.64sbPqUsjP/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv-keys
379CE192D401AB61
gpg: requesting key D401AB61 from hkp server keyserver.ubuntu.com
gpg: key D401AB61: public key "Bintray (by JFrog) <bintray@bintray.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
root@ubuntu-deepstream-tutorial:~# apt-get update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Ign:2 http://dl.bintray.com/deepstreamio/deb xenial InRelease
Get:3 http://dl.bintray.com/deepstreamio/deb xenial Release [1,839 B]
Get:4 http://dl.bintray.com/deepstreamio/deb xenial Release.gpg [821 B]
Get:5 http://security.ubuntu.com/ubuntu xenial-security/main Sources [32.8 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [8,504 B]
Get:7 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [728 B]
Get:8 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [123 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [120 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [36.0 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/universe i386 Packages [36.0 kB]
Hit:12 http://ams2.mirrors.digitalocean.com/ubuntu xenial InRelease
Get:13 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates InRelease [95.7 kB]
Hit:14 http://ams2.mirrors.digitalocean.com/ubuntu xenial-backports InRelease
Get:15 http://ams2.mirrors.digitalocean.com/ubuntu xenial/main Sources [868 kB]
Get:16 http://ams2.mirrors.digitalocean.com/ubuntu xenial/restricted Sources [4,808 B]
Get:17 http://ams2.mirrors.digitalocean.com/ubuntu xenial/universe Sources [7,728 kB]
Get:18 http://ams2.mirrors.digitalocean.com/ubuntu xenial/multiverse Sources [179 kB]
Get:19 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates/main Sources [169 kB]
Get:20 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates/universe Sources [84.4 kB]
Get:21 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates/multiverse Sources [3,220 B]
Get:22 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 Packages [328 kB]
Get:23 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates/main i386 Packages [323 kB]
Get:24 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates/main Translation-en [125 kB]
Get:25 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates/universe amd64 Packages [300 kB]
Get:26 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates/universe i386 Packages [297 kB]
Get:27 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates/universe Translation-en [101 kB]
Get:28 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates/multiverse amd64 Packages [5,488 B]
Get:29 http://ams2.mirrors.digitalocean.com/ubuntu xenial-updates/multiverse i386 Packages [4,280 B]
Get:30 http://ams2.mirrors.digitalocean.com/ubuntu xenial-backports/main Sources [752 B]
Get:31 http://ams2.mirrors.digitalocean.com/ubuntu xenial-backports/universe Sources [800 B]
Fetched 11.1 MB in 4s (2,504 kB/s)
Reading package lists... Done
root@ubuntu-deepstream-tutorial:~# apt-get install -y deepstream.io
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package deepstream.io
E: Couldn't find any package by glob 'deepstream.io'
E: Couldn't find any package by regex 'deepstream.io'
timaschew commented 8 years ago

Of course the script doesn't work there is no placeholder, it should be

source /etc/lsb-release && echo "deb http://dl.bintray.com/deepstreamio/deb ${DISTRIB_CODENAME} main" | sudo tee -a /etc/apt/sources.list
yasserf commented 8 years ago

what does source /etc/lsb-release spit out? i think that was meant to give the distro name which can be piped as the distrib_codename

timaschew commented 8 years ago

it contains several lines of distribution information as key value pairs and we need DISTRIB_CODENAME