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

Installing sbt in ubuntu: Failed to fetch https://dl.bintray.com/sbt/debian/Packages server certificate verification failed. #3956

Closed
cacti77 opened this issue Feb 20, 2018 · 7 comments
Labels
area/linux Linux distro related issues needs info Needs more information to take further actions. uncategorized Used for Waffle integration

Comments

@cacti77
Copy link

cacti77 commented Feb 20, 2018

steps

At https://www.scala-sbt.org/1.x/docs/Installing-sbt-on-Linux.html under 'Ubuntu and other Debian-based distributions' it says:

echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install sbt

problem

3rd step fails. Output of first 3 steps:

$ echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
deb https://dl.bintray.com/sbt/debian /
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
Executing: /tmp/tmp.SwnY57RiJY/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv
2EE0EA64E40A89B84B2DF73499E82A75642AC823
gpg: requesting key 642AC823 from hkp server keyserver.ubuntu.com
gpg: key 642AC823: "sbt build tool <scalasbt@gmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
$ sudo apt-get update
Hit:1 http://gb.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease      
Ign:3 https://dl.bintray.com/sbt/debian  InRelease                      
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Ign:5 https://dl.bintray.com/sbt/debian  Release
Ign:6 https://dl.bintray.com/sbt/debian  Packages
Ign:7 https://dl.bintray.com/sbt/debian  Translation-en_GB
Ign:8 https://dl.bintray.com/sbt/debian  Translation-en
Ign:6 https://dl.bintray.com/sbt/debian  Packages
Ign:7 https://dl.bintray.com/sbt/debian  Translation-en_GB
Ign:8 https://dl.bintray.com/sbt/debian  Translation-en
Ign:6 https://dl.bintray.com/sbt/debian  Packages
Ign:7 https://dl.bintray.com/sbt/debian  Translation-en_GB
Ign:8 https://dl.bintray.com/sbt/debian  Translation-en
Ign:6 https://dl.bintray.com/sbt/debian  Packages
Ign:7 https://dl.bintray.com/sbt/debian  Translation-en_GB
Ign:8 https://dl.bintray.com/sbt/debian  Translation-en
Ign:6 https://dl.bintray.com/sbt/debian  Packages
Ign:7 https://dl.bintray.com/sbt/debian  Translation-en_GB
Ign:8 https://dl.bintray.com/sbt/debian  Translation-en
Err:6 https://dl.bintray.com/sbt/debian  Packages
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Ign:7 https://dl.bintray.com/sbt/debian  Translation-en_GB
Ign:8 https://dl.bintray.com/sbt/debian  Translation-en
Fetched 102 kB in 4s (20.8 kB/s)
Reading package lists... Done
W: The repository 'https://dl.bintray.com/sbt/debian  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 https://dl.bintray.com/sbt/debian/Packages  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Some index files failed to download. They have been ignored, or old ones used instead.
$

Ubuntu's Software Updater fails too: "Failed to download repository information, Check your internet connection."

expectation

No errors when updating apt.

notes

Ubuntu 16.04 LTS (running in an Oracle VirtualBox VM on Windows 7 behind a corporate proxy).

sbt version: 1.x

@eed3si9n eed3si9n added the needs info Needs more information to take further actions. label Feb 28, 2018
@eed3si9n
Copy link
Member

https://dl.bintray.com/sbt/debian has Release. Could you test without your corporate proxy?

@cacti77
Copy link
Author

cacti77 commented Feb 28, 2018

All 4 steps work fine at home on a different ubuntu 16.04 computer. I'll try the work computer tomorrow if I can get it on a non-work network...

@cacti77
Copy link
Author

cacti77 commented Mar 7, 2018

Unfortunately this isn't easy to test on my work computer. It's hard to get onto a non-work network in the first place and I'd also have to disable all the relevant proxy settings (e.g., for apt, etc.). So I'm not sure if and when I'll be able to test this without the corporate proxy I'm afraid...

@eed3si9n eed3si9n added the uncategorized Used for Waffle integration label Sep 18, 2018
@serv-inc
Copy link

Could be related to #4248 .

@eed3si9n eed3si9n added the area/linux Linux distro related issues label Mar 6, 2019
@eed3si9n
Copy link
Member

I am closing this for now since there's not much we can do to proceed.

@shijunjing
Copy link

I solve same problem by changing the "https" to "http" in the first step as below:
echo "deb http://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list

@yt1969143065
Copy link

echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add
sudo apt-get update
sudo apt-get install sbt

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/linux Linux distro related issues needs info Needs more information to take further actions. uncategorized Used for Waffle integration
Projects
None yet
Development

No branches or pull requests

5 participants