Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update install instructions, Ubuntu 20 is EOL in April 2025 #1486

Open
matkoniecz opened this issue Feb 21, 2025 · 1 comment
Open

Update install instructions, Ubuntu 20 is EOL in April 2025 #1486

matkoniecz opened this issue Feb 21, 2025 · 1 comment

Comments

@matkoniecz
Copy link
Contributor

Describe the problem

https://github.com/colouring-cities/ccrp-technical-manual/wiki/Setting-up-a-local-development-environment was tested with Ubuntu 20.04 LTS

Ubuntu 20.04 LTS in weeks - see https://endoflife.software/operating-systems/linux/ubuntu

https://github.com/colouring-cities/ccrp-technical-manual/wiki/Setting-up-a-local-development-environment was tested with Ubuntu 24 - and reportedly it fails

@matkoniecz
Copy link
Contributor Author

Valuable feedback we received:

When installing a local development environment I encountered the following:

  1. Installing PostgreSQL: These commands don't work

sudo sh -c 'echo "deb[ http://apt.postgresql.org/pub/repos/apt](http://apt.postgresql.org/pub/repos/apt) $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

sudo wget --quiet -O -[ https://www.postgresql.org/media/keys/ACCC4CF8.asc](https://www.postgresql.org/media/keys/ACCC4CF8.asc) | sudo apt-key add -

I used these ones:

apt install postgresql

sudo apt install -y postgresql-common
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh

Also the version of postgresql is a bit dated, should we upgrade to the latest version (i.e. 16 or 17?

Other errors:

Configure postgres to listen on network connection.

$ sudo sed -i "s/#\?listen_address.*/listen_addresses '*'/" /etc/postgresql/12/main/postgresql.conf

sed: can't read /etc/postgresql/12/main/postgresql.conf: No such file or directory

$ echo "host all all all md5" | sudo tee --append /etc/postgresql/12/main/pg_hba.conf > /dev/nulltee: /etc/postgresql/12/main/pg_hba.conf: No such file or directory

  1. Configuring Node.js: The code below generates an error

export NODEJS_HOME=/usr/local/lib/node/node-v16.13.2/bin/
export PATH=$NODEJS_HOME:$PATH
sudo env "PATH=$PATH" npm install -g npm@latest

Error:

npm ERR! code EBADENGINE

npm ERR! engine Unsupported engine

npm ERR! engine Not compatible with your version of node/npm: [email protected]

npm ERR! notsup Not compatible with your version of node/npm: [email protected]

npm ERR! notsup Required: {"node":"^20.17.0 || >=22.9.0"}

npm ERR! notsup Actual:   {"npm":"8.1.2","node":"v16.13.2"}

I have not managed to proceed beyond configuration of Node JS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant