Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Unsupported apt flavors return 403 #6446

Closed
bsima opened this issue Dec 28, 2016 · 35 comments · Fixed by #11241
Closed

Unsupported apt flavors return 403 #6446

bsima opened this issue Dec 28, 2016 · 35 comments · Fixed by #11241

Comments

@bsima
Copy link

bsima commented Dec 28, 2016

Did you search for similar issues before submitting this one?

Yes

Describe the issue you encountered:

After following instructions in linuxInstall.md:

$ sudo apt update
[...]
Err:7 https://s3-us-west-2.amazonaws.com/brave-apt stretch Release
  403  Forbidden
Reading package lists... Done
E: The repository 'https://s3-us-west-2.amazonaws.com/brave-apt stretch Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Expected behavior: apt should successfully pull data from the brave-apt repository

  • Platform (Win7, 8, 10? macOS? Linux distro?): Debian Squeeze
ben@neb ~ : uname -a && lsb_release -a
Linux neb 4.8.0-2-amd64 #1 SMP Debian 4.8.11-1 (2016-12-02) x86_64 GNU/Linux
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux testing (stretch)
Release:	testing
Codename:	stretch
  • Brave Version (revision SHA): n/a

  • Steps to reproduce:

    1. Follow the directions exactly
    2. execute sudo apt update (sudo apt-get update = same error but with more detailed logging)
  • Any related issues: could not find any, but SO says this is probably a server error

@bsima
Copy link
Author

bsima commented Dec 28, 2016

After changing stretch to jessie in /etc/apt/sources.list for the brave-apt entry, it still fails:

Err:8 https://s3-us-west-2.amazonaws.com/brave-apt jessie/main amd64 Packages
  403  Forbidden
[...]
W: The repository 'https://s3-us-west-2.amazonaws.com/brave-apt jessie 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://s3-us-west-2.amazonaws.com/brave-apt/dists/jessie/stretch/binary-amd64/Packages  403  Forbidden
E: Some index files failed to download. They have been ignored, or old ones used instead.

@posix4e
Copy link
Contributor

posix4e commented Jan 4, 2017

it's currently mispelled as jesse . It will be fixed in the next release (and nightly should work)

@posix4e posix4e self-assigned this Jan 4, 2017
@Fromax
Copy link

Fromax commented Jan 9, 2017

"jesse" really? You could at least update your linuxInstall.md...

@bbondy
Copy link
Member

bbondy commented Jan 9, 2017

@Fromax it was updated 14 days ago here: https://github.com/brave/browser-laptop/commits/master/docs/linuxInstall.md

This is a work in progress repository where mistakes are made and corrected on a daily basis, Saying ""jesse" really?" is a bit rude, isn't constructive, and doesn't help. Please keep a positive attitude, thanks.

@Kwaskoff
Copy link

forbidden yet
screenshot from 2017-01-12 14-02-17

@Fromax
Copy link

Fromax commented Jan 12, 2017

@bbondy

it was updated 14 days ago here: https://github.com/brave/browser-laptop/commits/master/docs/linuxInstall.md

Yes, but it still doesn't reflect the misspelling of "jessie" as "jesse".

This is a work in progress repository where mistakes are made and corrected on a daily basis,

I understand that.

Saying ""jesse" really?" is a bit rude, isn't constructive, and doesn't help. Please keep a positive attitude, thanks.

Sorry for my wording. I guess I got frustrated not being able to figure out why it didn't work...
But why not add a temporary statement to make clear of the misspelling?

Besides that, I think you should just settle to list the names of your repos. We know how to edit our sources.list by hand. Trying to guess the linux flavor by parsing the lsb_release in a script is basically broken: My distro would produce "betsy" as a result, while my sources.list are using "jessie" (I'm running LMDE, "Linux Mint Debian Edition")... Just trying to be constructive!

@posix4e
Copy link
Contributor

posix4e commented Jan 12, 2017

@Fromax I'm so embarrassed. Let me fix that asap!

@posix4e
Copy link
Contributor

posix4e commented Jan 12, 2017

@Fromax I noticed jessie worked just fine from my VM. We do call out what repos we support in the docs and provide specific instructions for mint

@posix4e posix4e changed the title Can't install via apt, 403 Forbidden Unsupported apt flavors return 403 Jan 12, 2017
@posix4e
Copy link
Contributor

posix4e commented Jan 12, 2017

@Fromax and by fine i found #6622 !

@Fromax
Copy link

Fromax commented Jan 12, 2017

@posix4e

and provide specific instructions for mint

Yes, for "Linux Mint"... FYI, LMDE (Linux Mint Debian Edition) is quite another animal! Linux Mint is based on Ubuntu. LMDE is based om Debian ("jessie", for the time being) and is completely compatible with Debian stable.

I never actually tryied to run the script, as I knew the result would be wrong. Instead, I crafted my own /etc/apt/sources.list.d/brave.list with the following string:

deb [arch=amd64] https://s3-us-west-2.amazonaws.com/brave-apt/ jessie main

... which should have worked, don't you agree?

Edit:
https://s3-us-west-2.amazonaws.com/brave-apt/ jessie main
... works now!
Good job!

Edit 2: Is Debian stable an "Unsupported apt flavor" now? :-)

@posix4e
Copy link
Contributor

posix4e commented Jan 12, 2017

@Fromax it might, i would like to test it before I claim it does

@posix4e
Copy link
Contributor

posix4e commented Jan 12, 2017

@Fromax we don't support precise out of the box yet, that's right

@posix4e
Copy link
Contributor

posix4e commented Jan 12, 2017

ooh wait @Fromax jessie is stable so it is supported. Jesse has now been removed.

@crysman
Copy link

crysman commented Jan 27, 2017

EDIT: Oh, I see, Yaketty is not supported, I am sorry :/ Will it be supported, though?

Not working on my Xubuntu yaketty either, same issue:

sudo apt update
Hit:1 http://cz.archive.ubuntu.com/ubuntu yakkety InRelease
Hit:2 http://cz.archive.ubuntu.com/ubuntu yakkety-updates InRelease        
Hit:3 http://cz.archive.ubuntu.com/ubuntu yakkety-backports InRelease                        
Hit:4 http://security.ubuntu.com/ubuntu yakkety-security InRelease                           
Ign:5 https://s3-us-west-2.amazonaws.com/brave-apt yakkety InRelease           
Err:6 https://s3-us-west-2.amazonaws.com/brave-apt yakkety Release
  403  Forbidden
Reading package lists... Done
E: The repository 'https://s3-us-west-2.amazonaws.com/brave-apt yakkety Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

I've followed the official instructions here just now.
I've checked the sources.list (added some comments to it) and it seems fine:

tail -4 /etc/apt/sources.list

#brave browser
#https://github.com/brave/browser-laptop/blob/master/docs/linuxInstall.md
deb [arch=amd64] https://s3-us-west-2.amazonaws.com/brave-apt yakkety main

Importing the key also seems fine:

curl https://s3-us-west-2.amazonaws.com/brave-apt/keys.asc | sudo apt-key add -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3165  100  3165    0     0   2150      0  0:00:01  0:00:01 --:--:--  2150
OK

@posix4e
Copy link
Contributor

posix4e commented Jan 27, 2017

If the deb is verified we'd be happy to add it. Honestly it's just a pull request away
https://github.com/brave/browser-laptop/blob/master/tools/upload_to_aptly
Maybe we should convert it to a single sequence!

@ahmetasabanci
Copy link

As a workaround to yakkety being not supported, I went to /etc/apt/sources.list.d/brave-yakkety.list in my system and changed

deb [arch=amd64] https://s3-us-west-2.amazonaws.com/brave-apt yakkety main

to

deb [arch=amd64] https://s3-us-west-2.amazonaws.com/brave-apt xenial main

and it installed without any problem and seems like works fine so far. Guess Xenial version doesn't have so much problem with Yakkety.

@cndouglas
Copy link

Yakkety is now supported (#6643 (comment)).

@crysman
Copy link

crysman commented Feb 5, 2017

@liunkae OK, thanks for noticing. It works now.

I am just wondering why the installation (sudo apt install brave) invokes "...computer needs to restart..." ?? This is highly suspicious and non-standard, since only system packages upgrades invoke the restart prompt...

@BurkeRS
Copy link

BurkeRS commented Jun 5, 2017

I will post here first rather than start a new issue since my problem is closely related. I'm using latest Linux Mint, have installed brave and it is working well. But in apt-get update I get the same message as noted above:
The repository 'https://s3-us-west-2.amazonaws.com/brave-apt serena Release' does not have a Release file.
The contents of my /etc/apt/sources.list.d/brave-serena.list are:
deb [arch=amd64] https://s3-us-west-2.amazonaws.com/brave-apt serena main
Is this correct? If not, how can I fix it? If so, why isn't it working.
I like brave and want it to update correctly. Thanks for any help.

@posix4e
Copy link
Contributor

posix4e commented Jun 9, 2017

@BurkeRS Sorry for the delay. Not sure how I missed this. You should be able to use the ubuntu repo. Try changing to a flavour of ubuntu and see if it works for you.

@ronaldburke
Copy link

Thanks, posix4e. I removed brave-serena.list and added the brave-apt xenial main repository. It does seems that should work. If not, I'll be back again. Thanks again. I like the browser and I like the payment plan.

@ghost
Copy link

ghost commented Aug 10, 2017

+1 still can't install on Ubuntu 16.04 LTS

@posix4e
Copy link
Contributor

posix4e commented Aug 10, 2017

@JGH1000 give me more of an explanation. I am running brave on 16.04 LTS just fine

@ghost
Copy link

ghost commented Aug 15, 2017

@posix4e
Sorry, should have done it in the first post. I am using Elementary OS which is based on Ubuntu 16.04 LTS. This is the message I get when I try to update through apt, before even installing:

E: The repository 'https://s3-us-west-2.amazonaws.com/brave-apt loki Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

I would prefer apt as snaps for some reason never update for me.

@posix4e
Copy link
Contributor

posix4e commented Aug 15, 2017

You should be able to use the linux mint install of just downloading the deb.

@ghost
Copy link

ghost commented Aug 16, 2017

I did, but I don't think people get updates after installing this way. Anyway the install instructions do not work so I thought I would report. Up to you guys to decide what to do with them. Thanks!

@thornjad
Copy link
Contributor

thornjad commented Sep 4, 2017

I got the same "403 Forbidden" coming from the AWS repo when using the instructions in linuxinstall.md from Linux Mint 18.2, however I fixed it by manually switching the .list to Xenial.

Specifically, in /etc/apt/sources.list.d/brave-sonya.list I changed

deb [arch=amd64] https://s3-us-west-2.amazonaws.com/brave-apt-staging sonya main

to

deb [arch=amd64] https://s3-us-west-2.amazonaws.com/brave-apt-staging xenial main

and then everything works perfectly. I don't have much experience with apt beyond basic usage, so I don't know if this has any effect on updating, but it sure works for now.

@posix4e
Copy link
Contributor

posix4e commented Sep 5, 2017

@Raindeer44 I specifically have said many times we don't have a sonya repo.

@thornjad
Copy link
Contributor

thornjad commented Sep 5, 2017

@posix4e it would definitely be nice if info like that could be included in the linuxinstall.md, regardless of how many times you may have said it. If there's no sonya repo, then lsb_release isn't going to work.

@posix4e
Copy link
Contributor

posix4e commented Sep 5, 2017

Haha, good point! If you add it I'll commit it :)

@thornjad
Copy link
Contributor

thornjad commented Sep 5, 2017

Hey, good point. It's almost like this is open source software or something :) I'll try adding in a little section.

For reference, is there (or can you provide) a convenient list of flavors that are supported?

@posix4e
Copy link
Contributor

posix4e commented Sep 6, 2017

I test debian, ubuntu and centos currently. I think we are going to add appimage and snap soon. Also I expect to add mint and others down the line. Note we work on those platforms I just don't yet have the automation to test it.

@thornjad
Copy link
Contributor

thornjad commented Oct 2, 2017

Just opened a PR for this. Sorry it took a while, I was waiting for Hacktoberfest to start since this isn't a critical issue.

@posix4e posix4e closed this as completed in 3caebfd Oct 4, 2017
@luixxiul luixxiul added this to the 0.21.x (Nightly Channel) milestone Oct 4, 2017
@bbondy bbondy modified the milestones: 0.21.x (Developer Channel), 0.20.x (Beta Channel) Oct 25, 2017
syuan100 pushed a commit to syuan100/browser-laptop that referenced this issue Nov 9, 2017
The `lsb_release` method doesn't work for Mint since it's not
explicitly supported. This adds instructions for using the upstream
Ubuntu name instead.

fix brave#6446
@rolandixor
Copy link

This still needs to be addressed in the documentation. I'm on cosmic, and was running into this issue trying to add the -dev repo. Manually editing the line to read bionic instead of cosmic is the fix, but there is no way to figure this out if you're not familiar with apt, and do some digging.

@thornjad
Copy link
Contributor

@rolandixor this repository is being deprecated, so documentation here won't be updated. Try out brave-browser, and open an issue there if it's still causing you trouble.

@brave brave locked and limited conversation to collaborators Jan 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.