Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Libsodium on Ubuntu 14.04.3 LTS Trusty
#!/bin/bash
sudo add-apt-repository ppa:chris-lea/libsodium;
sudo echo "deb http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list;
sudo echo "deb-src http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list;
sudo apt-get update && sudo apt-get install libsodium-dev;
@s749312025

This comment has been minimized.

s749312025 commented Mar 1, 2016

good

@Castaglia

This comment has been minimized.

Castaglia commented Apr 6, 2016

👍

@MrXXIV

This comment has been minimized.

MrXXIV commented Apr 8, 2016

Awesome. Was needed for Discord API.

@akaihola

This comment has been minimized.

akaihola commented Apr 11, 2016

Aren't lines 3–4 what line 2 already does for me?

@jschwartzenberg

This comment has been minimized.

jschwartzenberg commented Jun 12, 2016

Yes, with both line 2 and 3-4, the repository will be added twice. Once in /etc/apt/sources.list.d/chris-lea-libsodium-trusty.list and once in /etc/apt/sources.list.

@SniparsZach

This comment has been minimized.

SniparsZach commented Nov 9, 2016

I am getting access denied for lines 2 and

@yumin9822

This comment has been minimized.

yumin9822 commented Nov 16, 2016

1.0.10 version is here https://launchpad.net/~ondrej/+archive/ubuntu/php/

How to use
apt-get install -y software-properties-common
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
apt-get update
apt-get install -y libsodium-dev

@lawliet89

This comment has been minimized.

lawliet89 commented Apr 25, 2017

On 16.04 at least, we have https://launchpad.net/ubuntu/+source/libsodium

sudo apt install libsodium-dev

@b3rew

This comment has been minimized.

b3rew commented May 18, 2017

thanks

@loodsitnl

This comment has been minimized.

loodsitnl commented Jun 30, 2017

Hi,
At last this worked for me:

sudo apt-get install -y software-properties-common

sudo bash -c "LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php"

sudo apt-get update

sudo apt-get install -y libsodium-dev

@gayu-mike

This comment has been minimized.

gayu-mike commented Sep 3, 2017

thanks

@zafhar

This comment has been minimized.

zafhar commented Sep 13, 2017

Hi,
Will this

sudo apt-get install -y software-properties-common

sudo bash -c "LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php"

sudo apt-get update

sudo apt-get install -y libsodium-dev

Works with php5.6 ??

Thanks

@jeong760

This comment has been minimized.

jeong760 commented Nov 3, 2017

Thanks a lot. with this info, I've solved a sodium.h error message during node-multi-hashing compile process of my NOMP mining pool.

@JHPSoft

This comment has been minimized.

JHPSoft commented Mar 13, 2018

thx for loodsitnl

It works for me

@RussellLuo

This comment has been minimized.

RussellLuo commented Apr 19, 2018

This is really helpful! Thanks!

@shannonliang312

This comment has been minimized.

shannonliang312 commented May 31, 2018

thanks!

@AshMillenium

This comment has been minimized.

AshMillenium commented Jun 13, 2018

2nd and 3rd command is giving me following error.
what should i do?

bash: /etc/apt/sources.list: Permission denied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment