redis-stack / redis-stack-docs

6 stars 55 forks source link

Install Redis Stack on Linux (Ubuntu 22.04 Jammy) #69

Open leon-v opened 2 years ago

leon-v commented 2 years ago
$ curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
File '/usr/share/keyrings/redis-archive-keyring.gpg' exists. Overwrite? (y/N) y

$ echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb jammy main

$ sudo apt-get update
Hit:1 http://nz.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://nz.archive.ubuntu.com/ubuntu jammy-updates InRelease             
Hit:3 http://nz.archive.ubuntu.com/ubuntu jammy-backports InRelease           
Hit:4 http://nz.archive.ubuntu.com/ubuntu jammy-security InRelease                                              
Get:5 https://dl.cloudsmith.io/public/symfony/stable/deb/ubuntu jammy InRelease [5,071 B]                                                                        
Hit:6 https://deb.nodesource.com/node_14.x jammy InRelease                                                                                 
Hit:7 https://ppa.launchpadcontent.net/team-xbmc/ppa/ubuntu jammy InRelease                            
Hit:8 https://packages.redis.io/deb jammy InRelease                              
Fetched 5,071 B in 2s (3,380 B/s)
Reading package lists... Done

$ sudo apt-get install redis-stack-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package redis-stack-server

Unsure if this is related, but when I access https://packages.redis.io/deb in my browser, I get the Fastly 403:

<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>0F2G9EW55NMQXQQN</RequestId>
<HostId>0kFi8cF0Ewbk/8yqzmVEXLrUXwwJVHeYlB/8J1KFdoEoRhoDkw+Wtk3wEAWEJi3128gVWq8tkQc=</HostId>
</Error>
$ uname -a
Linux server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
karimos97 commented 2 years ago

I am getting the following error Unable to locate package redis-stack-server

mattved commented 2 years ago

Yes, same problem

leon-v commented 2 years ago

Turned out that there was no redis-stack-server repository for jammy (Ubuntu 22.04). https://forum.redis.com/t/install-redis-stack-server-in-ubuntu-22-04-jammy/1866

However, I was able to get it installed on jammy by forcing it to use focal (Ubuntu 20.04):

echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb focal main" | sudo tee /etc/apt/sources.list.d/redis.list

(Swapping $(lsb_release -cs) for focal) Then following the rest of the instructions.

From memory-there was some SSL issue that I resolved by installing some library from source (or something... wasn't sober)

itamarhaber commented 2 years ago

Thanks @leon-v for reporting and identifying the issue - pinging @chayim for resolution

chayim commented 2 years ago

Jammy/22.04 is currently an unsupported platform. We don't have installers for this yet, as we don't yet build there. This is in the backlog.