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

[SOLVED] Malformed entry 1 - failed install - UBUNTU 19.04 #5703

Closed
BMACCRYPTO opened this issue Aug 16, 2019 · 2 comments
Closed

[SOLVED] Malformed entry 1 - failed install - UBUNTU 19.04 #5703

BMACCRYPTO opened this issue Aug 16, 2019 · 2 comments

Comments

@BMACCRYPTO
Copy link

@BMACCRYPTO BMACCRYPTO commented Aug 16, 2019

Description

New install Ubuntu Disco Dingo 19
I used instructions from:
https://support.brave.com/hc/en-us/articles/360018666072-How-do-I-install-Brave-on-Linux-using-the-terminal-

sudo apt install apt-transport-https

curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -

source /etc/os-release

echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ $UBUNTU_CODENAME main" | sudo tee /etc/apt/sources.list.d/brave-browser-release-${UBUNTU_CODENAME}.list

sudo apt update

The Result when attempting to "sudo apt update" are:
$ sudo apt update
E: Malformed entry 1 in list file /etc/apt/sources.list.d/brave-browser-release-.list (Component)
E: The list of sources could not be read.

Steps to Reproduce

  1. sudo apt install apt-transport-https
  2. curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -
  3. source /etc/os-release
  4. echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ $UBUNTU_CODENAME main" | sudo tee /etc/apt/sources.list.d/brave-browser-release-${UBUNTU_CODENAME}.list
    5. sudo apt update

Actual result:

E: Malformed entry 1 in list file /etc/apt/sources.list.d/brave-browser-release-.list (Component)
E: The list of sources could not be read.
Screenshot from 2019-08-16 18-38-10

Expected result:

Install brave browser successfully

Reproduces how often:

Repeats every attempt.

Version/Channel Information:

Ubuntu 16.04+ and Mint 18+
Screenshot from 2019-08-16 18-47-16

@BMACCRYPTO
Copy link
Author

@BMACCRYPTO BMACCRYPTO commented Aug 17, 2019

I have resolved this issue:
I received the following failure on brave browser installation attempt:
$ sudo apt update E: Malformed entry 1 in list file /etc/apt/sources.list.d/brave-browser-release-.list (Component) E: The list of sources could not be read.
Screenshot from 2019-08-17 15-47-20

Resolution was achieved by the following steps:

  1. get distro name
    $ lsb_release -sc

  2. Then clear the problem by deleting those files with malformed apt entries:
    $ sudo rm /etc/apt/sources.list.d/brave.list

3.Add Key
$ curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key add -

  1. Added my distro name "disco main"
    $ echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ disco main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list

$ sudo apt update

$ sudo apt install brave-browser

Screenshot from 2019-08-17 16-04-55

@BMACCRYPTO BMACCRYPTO changed the title Malformed entry 1 - failed install - UBUNTU 19.04 [SOLVED] Malformed entry 1 - failed install - UBUNTU 19.04 Aug 17, 2019
@BMACCRYPTO
Copy link
Author

@BMACCRYPTO BMACCRYPTO commented Aug 17, 2019

$ sudo apt install brave-browser Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: brave-keyring The following NEW packages will be installed: brave-browser brave-keyring 0 upgraded, 2 newly installed, 0 to remove and 212 not upgraded. Need to get 72.9 MB of archives. After this operation, 236 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 https://brave-browser-apt-release.s3.brave.com disco/main amd64 brave-keyring all 1.3 [3,400 B] Get:2 https://brave-browser-apt-release.s3.brave.com disco/main amd64 brave-browser amd64 0.67.125 [72.9 MB] Fetched 72.9 MB in 20s (3,653 kB/s) Selecting previously unselected package brave-keyring. (Reading database ... 172133 files and directories currently installed.) Preparing to unpack .../brave-keyring_1.3_all.deb ... Unpacking brave-keyring (1.3) ... Selecting previously unselected package brave-browser. Preparing to unpack .../brave-browser_0.67.125_amd64.deb ... Unpacking brave-browser (0.67.125) ... Setting up brave-keyring (1.3) ... OK Setting up brave-browser (0.67.125) ... update-alternatives: using /usr/bin/brave-browser-stable to provide /usr/bin/x-www-browser (x-www-browser) in auto mode update-alternatives: using /usr/bin/brave-browser-stable to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode update-alternatives: using /usr/bin/brave-browser-stable to provide /usr/bin/brave-browser (brave-browser) in auto mode Processing triggers for mime-support (3.60ubuntu1) ... Processing triggers for gnome-menus (3.32.0-1ubuntu1) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for desktop-file-utils (0.23-4ubuntu1) ...

@BMACCRYPTO BMACCRYPTO closed this Aug 17, 2019
@bbondy bbondy added this to the Closed / Invalid milestone Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.