Choose style:

Author Topic: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint  (Read 4360 times)

0 Members and 1 Guest are viewing this topic.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
[EDIT]

The following fix is ONLY applicable to people using Google CHROME on 64bit Peppermint, who get the error message mentioned .. it is NOT applicable to CHROMIUM or FIREFOX users unless they also have CHROME installed AND are getting the error mentioned.

[END EDIT]


Google have how dropped 32bit Chrome, yet apt still checks for it, then errors out...

If in 64bit Peppermint when you run:
Code: [Select]
sudo apt-get update
you get this error message:-

Quote
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)

run:
Code: [Select]
sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/etc/apt/sources.list.d/google-chrome.list" && sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/opt/google/chrome/cron/google-chrome"
you should now be able to update without error.



FYI, what that command does is edit /etc/apt/sources.list.d/google-chrome.list changing the line that reads:-

Quote
deb http://dl.google.com/linux/chrome/deb/ stable main

making it architecture specific, so it now reads:-

Quote
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

it also changes these 2 lines in /opt/google/chrome/cron/google-chrome from:-

Quote
REPOCONFIG="deb http://dl.google.com/linux/chrome/deb/ stable main"
SSLREPOCONFIG="deb https://dl.google.com/linux/chrome/deb/ stable main"

to

Quote
REPOCONFIG="deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main"
SSLREPOCONFIG="deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main"

so it gets autogenerated daily correctly.
« Last Edit: March 03, 2016, 05:41:10 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline GNULINUX

  • Trusted User
  • Member
  • *****
  • Posts: 987
  • Karma: 311
    • View Profile
  • Peppermint version(s): Peppermint Six (x64)
Thanks for the quick correction/work around!

Peppermint support is the best!  :)
Peppermint 6  (x64)   -   Windows 7 Ultimate SP1  (x64)
Running different OS flavors in VirtualBox, just for fun!

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Apperently, you'll then get a chrome update that breaks it again .. so you'll need to run:
Code: [Select]
sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/etc/apt/sources.list.d/google-chrome.list" && sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/opt/google/chrome/cron/google-chrome"
again ::)

If Google don't fix it I'll try to figure out a more permanent solution that can be pushed as a peppermint update, that said it's not a default Peppermint application so let's wait and see if Google fix it first (my guess is they will in chrome-stable 50).
« Last Edit: March 03, 2016, 05:41:40 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline GNULINUX

  • Trusted User
  • Member
  • *****
  • Posts: 987
  • Karma: 311
    • View Profile
  • Peppermint version(s): Peppermint Six (x64)
I was thinking... what a coincidence... a Google Chrome update...

Anyway, I stand by my opinion: Peppermint support is the best!  :)
Peppermint 6  (x64)   -   Windows 7 Ultimate SP1  (x64)
Running different OS flavors in VirtualBox, just for fun!

Offline jlschwartz

  • Trusted User
  • Member
  • *****
  • Posts: 330
  • Karma: 124
  • Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 - 64bit
The fix is not working on my system.  I get this:

sed: can't read /etc/apt/sources.list.d/google-chrome.list: No such file or directory

Offline GNULINUX

  • Trusted User
  • Member
  • *****
  • Posts: 987
  • Karma: 311
    • View Profile
  • Peppermint version(s): Peppermint Six (x64)
^^ Fully working on both of my machines!

Just saying...  ;)
Peppermint 6  (x64)   -   Windows 7 Ultimate SP1  (x64)
Running different OS flavors in VirtualBox, just for fun!

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
The fix is not working on my system.  I get this:

sed: can't read /etc/apt/sources.list.d/google-chrome.list: No such file or directory

Have you even got Google Chrome (google-chrome-stable) installed ?, if not the files to be modified won't exist .. Chrome is NOT a default Peppermint application .. this fix is ONLY applicable if you get the exact error mentioned in my first posting when you run:
Code: [Select]
sudo apt-get update
otherwise there's no need ;)
« Last Edit: March 03, 2016, 01:05:00 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline scifidude79

  • Global Moderator
  • Hero
  • *****
  • Posts: 4029
  • Karma: 863
    • View Profile
  • Peppermint version(s): Peppermint 9
Yep, everything went as you said it would.  Fired up the laptop, ran apt update, got the error.  Ran your wget line, then apt update again and everything was fine.  Upgraded my system, ran apt update again and got the error again.  So, once again I ran your code and once again everything is fine, at least until the next Chrome update.  ::)  Nice one, Google.

Though, honestly, who is surprised by this?  Moving from 32 bit and 64 bit to completely 64 bit is a major step and I've never seen any software company implement a major change without some issues.  I wish Firefox ran well on my laptop, but it doesn't.  So, I use Chrome because I prefer it over Chromium.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
I'd report it to them along with an easy fix, but I have no idea how to report issues to Google  ???
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline jlschwartz

  • Trusted User
  • Member
  • *****
  • Posts: 330
  • Karma: 124
  • Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 - 64bit
Yes. I have the same exact error and I'm using Chrome right now.  For some reason, my system does not have the google-chrome.list file just the google-chrome.list.save file so it can't find it to do the update.  Don't know how that happened.  Thanks for helping.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Hmm .. okay if I were you I'd download the chrome .deb file from here:
https://www.google.com/chrome/browser/desktop/index.html
then double-click it and select "Reinstall"

Then run the above command .. otherwise you'll not get any Chrome updates.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline GNULINUX

  • Trusted User
  • Member
  • *****
  • Posts: 987
  • Karma: 311
    • View Profile
  • Peppermint version(s): Peppermint Six (x64)
I'd report it to them along with an easy fix, but I have no idea how to report issues to Google  ???
Not sure, but this is the way for reporting issues with Google Chrome browser?  :-\
Peppermint 6  (x64)   -   Windows 7 Ultimate SP1  (x64)
Running different OS flavors in VirtualBox, just for fun!

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Feedback sent .. dunno if they read that stuff though.

As I said, I reckon they'll have it fixed by the next version.

[EDIT]

Okay, the Google devs are aware of the problem
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/FoE6sL-p6oU
and
https://bugs.chromium.org/p/chromium/issues/detail?id=591480
« Last Edit: March 03, 2016, 05:11:01 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline scifidude79

  • Global Moderator
  • Hero
  • *****
  • Posts: 4029
  • Karma: 863
    • View Profile
  • Peppermint version(s): Peppermint 9
Google is notoriously bad for making it hard to find places to send feedback.  I've tried before to give my thoughts about stuff on GMail, only to give up in frustration.  I don't think they want to hear it.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
I now know that one of their devs is aware of the problem, and knows the solution .. he's said he thinks he can fix it at the repo configuration end, if he can that would be the best solution but I can't see how he can do that (that said, their repo contents are hidden so I can't see how it's configured .. so for all I know he *may* be able to, we'll have to wait and see)

What they do with the info is up to them .. all I can do is make sure they're aware of the issue and provide a possible solution ;)
« Last Edit: March 03, 2016, 07:43:35 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec