Peppermint OS Community Forum

General => News and Reviews => Topic started by: PCNetSpec on March 03, 2016, 11:14:07 am

Title: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: PCNetSpec on March 03, 2016, 11:14:07 am
[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.
Title: Re: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: GNULINUX on March 03, 2016, 11:28:58 am
Thanks for the quick correction/work around!

Peppermint support is the best!  :)
Title: Re: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: PCNetSpec on March 03, 2016, 11:54:07 am
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).
Title: Re: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: GNULINUX on March 03, 2016, 12:39:20 pm
I was thinking... what a coincidence... a Google Chrome update...

Anyway, I stand by my opinion: Peppermint support is the best!  :)
Title: Re: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: jlschwartz on March 03, 2016, 12:51:46 pm
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
Title: Re: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: GNULINUX on March 03, 2016, 12:58:39 pm
^^ Fully working on both of my machines!

Just saying...  ;)
Title: Re: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: PCNetSpec on March 03, 2016, 01:01:46 pm
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 ;)
Title: Re: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: scifidude79 on March 03, 2016, 02:04:56 pm
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.
Title: Re: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: PCNetSpec on March 03, 2016, 02:22:39 pm
I'd report it to them along with an easy fix, but I have no idea how to report issues to Google  ???
Title: Re: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: jlschwartz on March 03, 2016, 02:29:34 pm
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.
Title: Re: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: PCNetSpec on March 03, 2016, 02:36:10 pm
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.
Title: Re: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: GNULINUX on March 03, 2016, 02:53:55 pm
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 (https://support.google.com/chrome/answer/95315?hl=en) is the way for reporting issues with Google Chrome browser?  :-\
Title: Re: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: PCNetSpec on March 03, 2016, 03:24:25 pm
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
Title: Re: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: scifidude79 on March 03, 2016, 07:30:41 pm
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.
Title: Re: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: PCNetSpec on March 03, 2016, 07:38:28 pm
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 ;)
Title: Re: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: PCNetSpec on March 04, 2016, 08:08:25 am
Dunno what Google are playing at here, but they've taken it on themselves to block the tracker for this bug:
http://crbug.com/591480
which now returns:-

Quote from: chromium bug tracker
You do not have permission to view the requested page.

Reason: User is not allowed to view this issue

and they've STILL not fixed it .. Google, I'm not impressed.
Title: Re: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: perknh on March 04, 2016, 11:22:27 am
PCNetSpec's update fixed mrs.perknh's  apt-get update.  Apparently this bug is not affecting Opera browser either in 64-bit Peppermint. :)

Thank you, PCNetSpec
Title: Re: Google Chrome repository causing 'apt-get update' error in 64bit Peppermint
Post by: scifidude79 on March 04, 2016, 11:34:34 am
Correct me if I'm wrong, but isn't Opera based on Chromium nowadays?  Also, isn't Chromium still available in 32 bit?  I don't imagine that anything that the closed source Chrome project does would that greatly affect Opera, as it's based on the open source Chromium project.

Dunno what Google are playing at here, but they've taken it on themselves to block the tracker for this bug:
http://crbug.com/591480
which now returns:-

Quote from: chromium bug tracker
You do not have permission to view the requested page.

Reason: User is not allowed to view this issue

and they've STILL not fixed it .. Google, I'm not impressed.

Like I said, they don't want to hear it.  ::)  It's that way with most software giants.  They give you the opportunity to report bugs and problems, they just don't guarantee that they'll actually give a hoot or try at all to fix them.  Because, you know, they know everything, especially what is best for their users.  ::)