How to install dotnet core sdk in Debian Jessie - linux

I'm having issues installing Dotnet Core SDK on my Debian Jessie Box. This is the guide i've followed https://learn.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x.
After Registering the Product Key and Feed all i get is Unable to locate Package when trying to do an apt-get install dotnet-sdk-2.0.0 or dotnet-sdk-2.0.2. I'm currently logged in as root as this is my local dev machine.
Steps to reproduce:
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-jessie-prod jessie main" > /etc/apt/sources.list.d/dotnetdev.list'
apt-get update
apt-get install dotnet-sdk-2.0.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dotnet-sdk-2.0.0
E: Couldn't find any package by regex 'dotnet-sdk-2.0.0'
Where am i going wrong with this? It's like apt cannot see the microsoft repo for some reason.
I realize i could just install this from a downloaded tarball and i will do that if necessary but my preference is to use the package manager for easy maintenance.
Here is the output of apt-get update
root#myserver:/etc/apt# apt-get update
Hit https://deb.nodesource.com jessie InRelease
Hit https://deb.nodesource.com jessie/main Sources
Hit https://deb.nodesource.com jessie/main i386 Packages
Get:1 https://packages.microsoft.com jessie InRelease [2,846 B]
Get:2 https://deb.nodesource.com jessie/main Translation-en_US [162 B]
Get:3 https://deb.nodesource.com jessie/main Translation-en [162 B]
Get:4 https://packages.microsoft.com jessie/main amd64 Packages [6,069 B]
Get:5 https://deb.nodesource.com jessie/main Translation-en_US [162 B]
Get:6 https://packages.microsoft.com jessie/main Translation-en_US [178 B]
Get:7 https://deb.nodesource.com jessie/main Translation-en [162 B]
Get:8 https://deb.nodesource.com jessie/main Translation-en_US [162 B]
Get:9 https://packages.microsoft.com jessie/main Translation-en [178 B]
Get:10 https://deb.nodesource.com jessie/main Translation-en [162 B]
Get:11 https://packages.microsoft.com jessie/main Translation-en_US [178 B]
Get:12 https://deb.nodesource.com jessie/main Translation-en_US [162 B]
Get:13 https://packages.microsoft.com jessie/main Translation-en [178 B]
Get:14 https://deb.nodesource.com jessie/main Translation-en [162 B]
Get:15 https://packages.microsoft.com jessie/main Translation-en_US [178 B]
Get:16 https://deb.nodesource.com jessie/main Translation-en_US [162 B]
Ign https://deb.nodesource.com jessie/main Translation-en_US
Get:17 https://packages.microsoft.com jessie/main Translation-en [178 B]
Get:18 https://deb.nodesource.com jessie/main Translation-en [162 B]
Ign https://deb.nodesource.com jessie/main Translation-en
Get:19 https://packages.microsoft.com jessie/main Translation-en_US [178 B]
Get:20 https://packages.microsoft.com jessie/main Translation-en [178 B]
Get:21 https://packages.microsoft.com jessie/main Translation-en_US [178 B]
Ign https://packages.microsoft.com jessie/main Translation-en_US
Get:22 https://packages.microsoft.com jessie/main Translation-en [178 B]
Ign https://packages.microsoft.com jessie/main Translation-en
Fetched 8,915 B in 1s (5,969 B/s)
Reading package lists... Done

After fighting with this for days i decided to upgrade my box to Debian Stretch.
Here is the article i followed https://linuxconfig.org/how-to-upgrade-debian-8-jessie-to-debian-9-stretch
apt-get update
apt-get upgrade
apt-get dist-upgrade
Changed my sources.list
FROM JESSIE
deb http://httpredir.debian.org/debian jessie main
deb http://httpredir.debian.org/debian jessie-updates main
deb http://security.debian.org jessie/updates main
TO STRETCH
deb http://httpredir.debian.org/debian stretch main
deb http://httpredir.debian.org/debian stretch-updates main
deb http://security.debian.org stretch/updates main
Ran this again
apt-get update
apt-get upgrade
apt-get dist-upgrade
After the upgrade completed i was able to finally see the dotnet core packages i was looking for!

Another reason this might not be working for you is if you are running a 32 bit version of linux. Dot Net Core Packages are only available for 64 bit. I ran into this gotcha as well when nothing was coming up when trying to install on a 32 bit version of Debian. https://learn.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x

Related

Issues installing gdal-bin (libmysqlclient21 dependency) on 20.04.3 (databricks job clusters)

I've had, in the past, gdal utilities installed successfully on a Databricks Cluster running 20.04.3 LTS (focal).
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
$ sudo apt-get install -y gdal-bin
Each time a databricks job cluster startups, my sample notebook attempts to install GDAL. I've attempted a series of apt-get updates/upgrades; and just when I think the issue has gone away; the next day it comes back again (no change of code, cluster spec, etc.)
Most recently the issue occurs once it hits installation for libmysqlclient21, e.g:
Err:27 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libmysqlclient21 amd64 8.0.26-0ubuntu0.20.04.3
404 Not Found [IP: 91.189.88.142 80]
My understanding is that these issues arise when the packaging versions are no longer supported, and noticed that libmysqlclient21 has come out with a recent patch as of the 25th of October (when the issue started arising).
I've noticed when I run %sh sudo apt-get --fix-missing -y update and apt policy libmysqlclient21, prior to a successful installation, I can see it's found 8.0.27-0ubuntu0.20.04.1:
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 https://repos.azul.com/zulu/deb stable InRelease
Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [628 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,635 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [801 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1,183 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,086 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [33.4 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [679 kB]
Fetched 6,374 kB in 19s (329 kB/s)
Reading package lists...
libmysqlclient21:
Installed: (none)
Candidate: 8.0.27-0ubuntu0.20.04.1
Version table:
8.0.27-0ubuntu0.20.04.1 500
500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
8.0.19-0ubuntu5 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
On an unsuccessful run, it's returning:
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 https://repos.azul.com/zulu/deb stable InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists...
libmysqlclient21:
Installed: (none)
Candidate: 8.0.26-0ubuntu0.20.04.3
Version table:
8.0.26-0ubuntu0.20.04.3 500
500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
8.0.26-0ubuntu0.20.04.2 500
500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
8.0.19-0ubuntu5 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
I've been scratching my head trying to understand what could be causing this, and what else to do to work around the problem. I'd prefer it to handle the installation automatically without having to hardcode specific versions (in case other issues were to arise); but not against targeting specific versions if I know they'll be supported on the current platform.
Any advice appreciated.
I had success by putting
sudo apt clean && sudo apt update --fix-missing -y && sudo apt install -y libmysqlclient21
before trying to install gdal and it seems to be working now....
...nevermind began failing the next day again...

How to install Greenplum Database in Linux Mint 17.1 Cinnamon 64-bit

To install greenplum, I am following below steps:
reference link
sudo apt-get install -y software-properties-common <br>
sudo add-apt-repository ppa:greenplum/db <br>
sudo apt-get update <br>
when we do
sudo apt-get update </b> we are getting following errors:
Ign http://extra.linuxmint.com rebecca/main Translation-en_IN
Ign http://extra.linuxmint.com rebecca/main Translation-en
Ign http://archive.ubuntu.com trusty/main Translation-en_IN
Ign http://archive.ubuntu.com trusty/multiverse Translation-en_IN
Ign http://archive.ubuntu.com trusty/restricted Translation-en_IN
Ign http://archive.ubuntu.com trusty/universe Translation-en_IN
Err http://ppa.launchpad.net trusty/main Sources
404 Not Found Err http://ppa.launchpad.net trusty/main amd64 Packages
404 Not Found Err http://ppa.launchpad.net trusty/main i386 Packages
404 Not Found Ign http://ppa.launchpad.net trusty/main
Translation-en_IN Ign http://ppa.launchpad.net
trusty/main Translation-en Ign
http://packages.linuxmint.com rebecca/import Translation-en_IN
Ign http://packages.linuxmint.com rebecca/import Translation-en
Ign http://packages.linuxmint.com rebecca/main Translation-en_IN
Ign http://packages.linuxmint.com rebecca/main Translation-en
Ign http://packages.linuxmint.com rebecca/upstream Translation-en_IN
Ign http://packages.linuxmint.com rebecca/upstream Translation-en
W: Failed to fetch
http://ppa.launchpad.net/greenplum/db/ubuntu/dists/trusty/main/source/Sources
404 Not Found W: Failed to fetch
http://ppa.launchpad.net/greenplum/db/ubuntu/dists/trusty/main/binary-amd64/Packages
404 Not Found W: Failed to fetch
http://ppa.launchpad.net/greenplum/db/ubuntu/dists/trusty/main/binary-i386/Packages
404 Not Found E: Some index files failed to download. They have been
ignored, or old ones used instead.
It looks like the required package for greenplum to install are not available
on linux mint.
Is there is any way to install greenplum on linux mint?
Trusty is Ubuntu 14.04. That's even before Greenplum Database was made Open Source.
Packages are available for Xenial, it looks like:
http://ppa.launchpad.net/greenplum/db/ubuntu/dists/

Unable to install NodeJS 9 on Ubuntu 16.04 LTS (64bit) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 5 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I have tried installing NodeJS by using the following command:
sudo apt-get install nodejs
The problem is, it installs an older version of NodeJS. So I found another way to install a newer version of NodeJS by the following command:
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
But it keeps throwing me the following error message:
adam#adam-pc:~$ curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
## Installing the NodeSource Node.js v9.x repo...
## Populating apt-get cache...
+ apt-get update
Get:1 http://hu.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Hit:2 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease
Get:3 http://hu.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Ign:4 http://dl.google.com/linux/chrome/deb stable InRelease
Get:5 http://hu.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Hit:6 http://ppa.launchpad.net/linrunner/tlp/ubuntu xenial InRelease
Hit:7 http://dl.google.com/linux/chrome/deb stable Release
Ign:8 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial InRelease
Hit:9 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:10 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu xenial InRelease
Ign:11 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial Release
Ign:12 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main DEP-11 64x64 Icons
Ign:12 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main DEP-11 64x64 Icons
Ign:12 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main DEP-11 64x64 Icons
Ign:12 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main DEP-11 64x64 Icons
Ign:12 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main DEP-11 64x64 Icons
Err:12 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 Packages
404 Not Found
Ign:13 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main DEP-11 64x64 Icons
Fetched 451 kB in 6s (70,4 kB/s)
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Error executing command, exiting
I keep looking for a solution for hours now, tried around 10 ideas from StackOverflow and from different forums that I found on Google, but still nothing.
EDIT:
Meanwhile I found the solution.
I opened Ubuntu Update manager by the following command:
update-manager
Then I clicked on Settings and Other software tab and unticked all the http://ppa.launchpad.net/ stuff I found ticked and strange (especially all the michael-gruz links).
Then used the commands above again:
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install nodejs
Now I got v9.5.0 installed.
There's nothing wrong with that install command itself. If you were to look why it errors out, you can see that a launchpad package has gone 404. If you remove this repository, it won't interrupt apt and allow installing the package. You should be able to remove this removed PPA like so:
sudo add-apt-repository --remove ppa:michael-gruz/ppa
I recommend to use a version manager for node. The most popular ones are nvm and n.
Now you can:
sudo apt-get install nodejs // install a really old node
npm install n -g // get n
n latest // get latest node, or a specific one with n v8.0.0

Debian Oracle OSS Group key list expired

I have a debian server running 8.8
When I do a simple sudo apt-get update I obtain the following :
Ign http://mirrors.online.net jessie InRelease
Hit http://mirrors.online.net jessie Release.gpg
Hit http://mirrors.online.net jessie Release
Hit http://security.debian.org jessie/updates InRelease
Ign http://ppa.launchpad.net jessie InRelease
Ign http://ppa.launchpad.net jessie Release.gpg
Ign http://ppa.launchpad.net jessie Release
Get:1 http://mirrors.online.net jessie/main Sources [7,055 kB]
Hit http://security.debian.org jessie/updates/non-free Sources
Hit http://security.debian.org jessie/updates/non-free amd64 Packages
Err http://ppa.launchpad.net jessie/main amd64 Packages
404 Not Found
Hit http://security.debian.org jessie/updates/non-free Translation-en
Ign http://ppa.launchpad.net jessie/main Translation-en_US
Hit http://security.debian.org jessie/updates/main Sources
Ign http://ppa.launchpad.net jessie/main Translation-en
Hit http://security.debian.org jessie/updates/contrib Sources
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://security.debian.org jessie/updates/contrib amd64 Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://security.debian.org jessie/updates/main Translation-en
Get:2 http://mirrors.online.net jessie/non-free Sources [99.5 kB]
Get:3 http://mirrors.online.net jessie/contrib Sources [50.8 kB]
Get:4 http://mirrors.online.net jessie/main amd64 Packages [6,790 kB]
Get:5 http://mirrors.online.net jessie/non-free amd64 Packages [83.6 kB]
Get:6 http://mirrors.online.net jessie/contrib amd64 Packages [50.2 kB]
Get:7 http://mirrors.online.net jessie/contrib Translation-en [38.5 kB]
Get:8 http://mirrors.online.net jessie/main Translation-en [4,583 kB]
Get:9 http://mirrors.online.net jessie/non-free Translation-en [72.1 kB]
Get:10 http://oss.oracle.com unstable InRelease [148 B]
Ign http://oss.oracle.com unstable InRelease
Get:11 http://oss.oracle.com unstable Release.gpg [189 B]
Hit http://oss.oracle.com unstable Release
Ign http://oss.oracle.com unstable Release
Get:12 http://oss.oracle.com unstable/main amd64 Packages [148 B]
Err http://oss.oracle.com unstable/main amd64 Packages
Get:13 http://oss.oracle.com unstable/non-free amd64 Packages [148 B]
Err http://oss.oracle.com unstable/non-free amd64 Packages
Get:14 http://oss.oracle.com unstable/main Translation-en_US [148 B]
Get:15 http://oss.oracle.com unstable/main Translation-en [148 B]
Get:16 http://oss.oracle.com unstable/non-free Translation-en_US [148 B]
Get:17 http://oss.oracle.com unstable/non-free Translation-en [148 B]
Get:18 http://oss.oracle.com unstable/main amd64 Packages [148 B]
Err http://oss.oracle.com unstable/main amd64 Packages
Get:19 http://oss.oracle.com unstable/non-free amd64 Packages [148 B]
Err http://oss.oracle.com unstable/non-free amd64 Packages
Get:20 http://oss.oracle.com unstable/main Translation-en_US [148 B]
Get:21 http://oss.oracle.com unstable/main Translation-en [148 B]
Get:22 http://oss.oracle.com unstable/non-free Translation-en_US [148 B]
Get:23 http://oss.oracle.com unstable/non-free Translation-en [148 B]
Get:24 http://oss.oracle.com unstable/main amd64 Packages [148 B]
Err http://oss.oracle.com unstable/main amd64 Packages
Get:25 http://oss.oracle.com unstable/non-free amd64 Packages [148 B]
Err http://oss.oracle.com unstable/non-free amd64 Packages
Get:26 http://oss.oracle.com unstable/main Translation-en_US [148 B]
Get:27 http://oss.oracle.com unstable/main Translation-en [148 B]
Get:28 http://oss.oracle.com unstable/non-free Translation-en_US [148 B]
Get:29 http://oss.oracle.com unstable/non-free Translation-en [148 B]
Get:30 http://oss.oracle.com unstable/main amd64 Packages [148 B]
Get:31 http://oss.oracle.com unstable/non-free amd64 Packages [148 B]
Err http://oss.oracle.com unstable/non-free amd64 Packages
Get:32 http://oss.oracle.com unstable/main Translation-en_US [148 B]
Get:33 http://oss.oracle.com unstable/main Translation-en [148 B]
Get:34 http://oss.oracle.com unstable/non-free Translation-en_US [148 B]
Get:35 http://oss.oracle.com unstable/non-free Translation-en [148 B]
Get:36 http://oss.oracle.com unstable/main amd64 Packages [148 B]
Err http://oss.oracle.com unstable/main amd64 Packages
HttpError404
Get:37 http://oss.oracle.com unstable/non-free amd64 Packages [148 B]
Err http://oss.oracle.com unstable/non-free amd64 Packages
HttpError404
Get:38 http://oss.oracle.com unstable/main Translation-en_US [148 B]
Ign http://oss.oracle.com unstable/main Translation-en_US
Get:39 http://oss.oracle.com unstable/main Translation-en [148 B]
Ign http://oss.oracle.com unstable/main Translation-en
Get:40 http://oss.oracle.com unstable/non-free Translation-en_US [148 B]
Ign http://oss.oracle.com unstable/non-free Translation-en_US
Get:41 http://oss.oracle.com unstable/non-free Translation-en [148 B]
Ign http://oss.oracle.com unstable/non-free Translation-en
Fetched 18.8 MB in 24s (761 kB/s)
W: GPG error: http://oss.oracle.com unstable Release: The following signatures were invalid: KEYEXPIRED 1378511808 KEYEXPIRED 1378511808 KEYEXPIRED 1378511808
W: Failed to fetch http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu/dists/jessie/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://oss.oracle.com/debian/dists/unstable/main/binary-amd64/Packages HttpError404
W: Failed to fetch http://oss.oracle.com/debian/dists/unstable/non-free/binary-amd64/Packages HttpError404
E: Some index files failed to download. They have been ignored, or old ones used instead.
Here is the output of sudo apt-key list :
/etc/apt/trusted.gpg
--------------------
pub 1024D/B38A8516 2006-09-05 [expired: 2013-09-06]
uid Oracle OSS group (Open Source Software group) <build#oss.oracle.com>
/etc/apt/trusted.gpg.d/bitcoin-bitcoin.gpg
------------------------------------------
pub 1024R/8842CE5E 2011-10-26
uid Launchpad PPA for Bitcoin
/etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg
----------------------------------------------------------
pub 4096R/2B90D010 2014-11-21 [expires: 2022-11-19]
uid Debian Archive Automatic Signing Key (8/jessie) <ftpmaster#debian.org>
/etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg
-------------------------------------------------------------------
pub 4096R/C857C906 2014-11-21 [expires: 2022-11-19]
uid Debian Security Archive Automatic Signing Key (8/jessie) <ftpmaster#debian.org>
/etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg
-------------------------------------------------------
pub 4096R/518E17E1 2013-08-17 [expires: 2021-08-15]
uid Jessie Stable Release Key <debian-release#lists.debian.org>
/etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg
-----------------------------------------------------------
pub 4096R/473041FA 2010-08-27 [expires: 2018-03-05]
uid Debian Archive Automatic Signing Key (6.0/squeeze) <ftpmaster#debian.org>
/etc/apt/trusted.gpg.d/debian-archive-squeeze-stable.gpg
--------------------------------------------------------
pub 4096R/B98321F9 2010-08-07 [expires: 2017-08-05]
uid Squeeze Stable Release Key <debian-release#lists.debian.org>
/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
----------------------------------------------------------
pub 4096R/46925553 2012-04-27 [expires: 2020-04-25]
uid Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster#debian.org>
/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
-------------------------------------------------------
pub 4096R/65FFB764 2012-05-08 [expires: 2019-05-07]
uid Wheezy Stable Release Key <debian-release#lists.debian.org>
We can clearly see that key B38A8516 is expired.
I have tried this command without succes :
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys B38A8516
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.66fa6TtioE --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/bitcoin-bitcoin.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-squeeze-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg --keyserver pgp.mit.edu --recv-keys B38A8516
gpg: requesting key B38A8516 from hkp server pgp.mit.edu
gpg: key B38A8516: "Oracle OSS group (Open Source Software group) <build#oss.oracle.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
I have even tried to remove the key manually with apt-key del B38A8516 and reinstall it. I always end with the same expired keys...
Anyone have a hint on this ? I'm completly lost...
Cheers,
Astrus

unable to install puppetserver on ec2 ubuntu instance error: Some packages could not be installed

I am trying to install Puppet server on an EC2 Ubuntu instance:
ubuntu#ip-172-31-43-240:~$ sudo apt-get install puppetserver
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
puppetserver : Depends: puppet-common (>= 3.7.3-1puppetlabs1) but 3.7.0-1puppetlabs1 is to be installed
Depends: puppet (>= 3.7.3-1puppetlabs1) but 3.7.0-1puppetlabs1 is to be installed
E: Unable to correct problems, you have held broken packages.
ubuntu#ip-172-31-43-240:~$
If I try to install puppet-common:
ubuntu#ip-172-31-43-240:~$ sudo apt-get install puppet-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
puppet-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
ubuntu#ip-172-31-43-240:~$
I tried purging puppet-common and reinstalling it. I have also tried sudo apt-get upgrade.
Any help will be appreciated. Thanks.
Have you enabled the PuppetLabs package repositories? Depending on the version of Ubuntu your on, you should do something like this:
curl https://apt.puppetlabs.com/puppetlabs-release-trusty.deb > /tmp/puppetlabs-release-trusty.deb
dpkg -i /tmp/puppetlabs-release-trusty.deb
apt-get update
apt-get -y install puppetserver
I just span up a clean Trusty server and running this script worked for me:
root#trustytest:~# bash install_puppet_server.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7384 100 7384 0 0 126k 0 --:--:-- --:--:-- --:--:-- 128k
(Reading database ... 153167 files and directories currently installed.)
Preparing to unpack .../puppetlabs-release-trusty.deb ...
Unpacking puppetlabs-release (1.0-11) over (1.0-11) ...
Setting up puppetlabs-release (1.0-11) ...
Ign http://apt.puppetlabs.com trusty InRelease
...trimmed for text limit
Ign http://mirrors.digitalocean.com trusty/main Translation-en_US
Ign http://mirrors.digitalocean.com trusty/multiverse Translation-en_US
Ign http://mirrors.digitalocean.com trusty/restricted Translation-en_US
Ign http://mirrors.digitalocean.com trusty/universe Translation-en_US
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-3.13.0-57 linux-headers-3.13.0-57-generic
linux-headers-3.13.0-61 linux-headers-3.13.0-61-generic
linux-image-3.13.0-57-generic linux-image-3.13.0-61-generic
linux-image-extra-3.13.0-57-generic linux-image-extra-3.13.0-61-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
augeas-lenses ca-certificates-java debconf-utils facter fontconfig-config
fonts-dejavu-core hiera java-common libasyncns0 libaugeas-ruby libaugeas0
libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libflac8
libfontconfig1 libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 libnss3
libnss3-nssdb libogg0 libpulse0 libruby1.9.1 libsctp1 libsndfile1
libvorbis0a libvorbisenc2 lksctp-tools openjdk-7-jre-headless puppet
puppet-common ruby ruby-augeas ruby-json ruby-shadow ruby1.9.1 tzdata-java
virt-what
Suggested packages:
augeas-doc default-jre equivs augeas-tools cups-common liblcms2-utils
pulseaudio icedtea-7-jre-jamvm libnss-mdns sun-java6-fonts
fonts-dejavu-extra fonts-ipafont-gothic fonts-ipafont-mincho
ttf-wqy-microhei ttf-wqy-zenhei ttf-indic-fonts-core ttf-telugu-fonts
ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts puppet-el vim-puppet
ruby-selinux libselinux-ruby1.8 librrd-ruby1.9.1 librrd-ruby1.8 ri ruby-dev
ruby1.9.1-examples ri1.9.1 graphviz ruby1.9.1-dev
Recommended packages:
rdoc
The following NEW packages will be installed:
augeas-lenses ca-certificates-java debconf-utils facter fontconfig-config
fonts-dejavu-core hiera java-common libasyncns0 libaugeas-ruby libaugeas0
libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libflac8
libfontconfig1 libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 libnss3
libnss3-nssdb libogg0 libpulse0 libruby1.9.1 libsctp1 libsndfile1
libvorbis0a libvorbisenc2 lksctp-tools openjdk-7-jre-headless puppet
puppet-common puppetserver ruby ruby-augeas ruby-json ruby-shadow ruby1.9.1
tzdata-java virt-what
0 upgraded, 42 newly installed, 0 to remove and 67 not upgraded.
Need to get 89.8 MB of archives.
After this operation, 143 MB of additional disk space will be used.
Get:1 http://apt.puppetlabs.com/ trusty/main facter all 2.4.6-1puppetlabs1 [73.3 kB]
Get:2 http://apt.puppetlabs.com/ trusty/main hiera all 1.3.4-1puppetlabs1 [12.0 kB]
Get:3 http://apt.puppetlabs.com/ trusty/main puppet-common all 3.8.6-1puppetlabs1 [1,269 kB]
Get:4 http://apt.puppetlabs.com/ trusty/main puppet all 3.8.6-1puppetlabs1 [9,310 B]
Get:5 http://apt.puppetlabs.com/ trusty/main puppetserver all 1.1.3-1puppetlabs1 [41.7 MB]
Get:6 http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu/ trusty/main libruby1.9.1 amd64 1:1.9.3.551-2bbox1~trusty1 [2,962 kB]
Get:7 http://mirrors.digitalocean.com/ubuntu/ trusty/main libasyncns0 amd64 0.8-4ubuntu2 [11.9 kB]
Get:8 http://mirrors.digitalocean.com/ubuntu/ trusty/main libavahi-common-data amd64 0.6.31-4ubuntu1 [21.2 kB]
Get:9 http://mirrors.digitalocean.com/ubuntu/ trusty/main libavahi-common3 amd64 0.6.31-4ubuntu1 [21.7 kB]
Get:10 http://mirrors.digitalocean.com/ubuntu/ trusty/main libavahi-client3 amd64 0.6.31-4ubuntu1 [25.1 kB]
Get:11 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libcups2 amd64 1.7.2-0ubuntu1.7 [179 kB]
Get:12 http://mirrors.digitalocean.com/ubuntu/ trusty/main libogg0 amd64 1.3.1-1ubuntu1 [17.0 kB]
Get:13 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libflac8 amd64 1.3.0-2ubuntu0.14.04.1 [80.2 kB]
Get:14 http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu/ trusty/main ruby1.9.1 amd64 1:1.9.3.551-2bbox1~trusty1 [236 kB]
Get:15 http://mirrors.digitalocean.com/ubuntu/ trusty/main fonts-dejavu-core all 2.34-1ubuntu1 [1,024 kB]
Get:16 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main fontconfig-config all 2.11.0-0ubuntu4.1 [47.4 kB]
...trimmed for text limit
Processing triggers for ureadahead (0.100.0-16) ...
Hey presto, installed!
root#trustytest:~# puppetserver --version
puppetserver version: 1.1.3

Resources