LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Upgrading from F11 to F12 Breaks Google Chrome? (https://www.linuxquestions.org/questions/fedora-35/upgrading-from-f11-to-f12-breaks-google-chrome-813667/)

mejohnsn 06-11-2010 10:42 PM

Upgrading from F11 to F12 Breaks Google Chrome?
 
After upgrading from F11 to F12 online, most things work. But whenever I try to launch Google Chrome from Applications>Internet>Chrome, it silently fails.

This worked before the upgrade. Any ideas on how to debug this? Is it a known problem? I could not find anything either here or in the Fedora Wiki

smoker 06-12-2010 01:37 AM

Have you tried running it from a command line ?
Or even re-installing it ?

mejohnsn 06-12-2010 02:10 AM

Quote:

Originally Posted by smoker (Post 4000880)
Have you tried running it from a command line ?
Or even re-installing it ?

Re-installing it would be a very unattractive option, since that would mean losing all the bookmarks and other customizations I have added.

As for running from the command line, yes, I have done that, and it is suggestive rather than informative: it suggests that Google Chrome is looking for a shared library no longer supported in Fedora. For the message is:
"bin/google-chrome: error while loading shared libraries: libnss3.so.1d: cannot open shared object file: No such file or directory"

But perhaps you will find the suggestion more definite than I do: was this library really deleted? Do I have to uninstall and then re-install Chrome, or will just updating the Chrome package be enough?

It appears not, since "yum update google-chrome-stable" did no update, printing instead, "Package(s) google-chrome-stable available, but not installed.
No Packages marked for Update"

Substituging 'upgrade' for 'update' fails in the same way.

Finally, yes I did Google to find posts about similar failures, but everything I found was too old to be accurate for my situation: the most recent was June 2009.

Then again, the June 2009 thread had a final post much more recently dated, suggesting that the workaround is to set up the following links:

ln -s /usr/lib/libnss3.so /lib/libnss3.so.1d
ln -s /usr/lib/libnssutil3.so /lib/libnssutil3.so.1d
ln -s /usr/lib/libsmime3.so /lib/libsmime3.so.1d
ln -s /usr/lib/libplds4.so /lib/libplds4.so.0d
ln -s /usr/lib/libplc4.so /lib/libplc4.so.0d
ln -s /usr/lib/libnspr4.so /lib/libnspr4.so.0d
ln -s /usr/lib/libbz2.so /lib/libbz2.so.1.0
(from http://code.google.com/p/chromium/is...etail?id=12562 comment #17).

Should I go ahead and try this?

John VV 06-12-2010 02:24 AM

upgrades in fedora very often do not work . in the past 5 years i have never had one work correctly

the bookmarks should be in a .google??? something folder in your home folder

Quote:

bin/google-chrome: error while loading shared libraries: libnss3.so.1d: cannot open shared object file: No such file or directory"
that says it all there is no lib called libnss3.so.1d
is there a /usr/lib/libnss3.so file ? if so a link might fix it ???
i have a /usr/lib/libnss3.so in my up to date Arch
fedora 12 is 6 months old

smoker 06-12-2010 03:06 AM

Quote:

Originally Posted by John VV (Post 4000902)
upgrades in fedora very often do not work . in the past 5 years i have never had one work correctly

fedora 12 is 6 months old

On the other hand, I have never had one fail.

If you have a problem with fedora, fair enough, but you seem to be pushing an anti fedora agenda on every post you make recently.
Fedora 12 will be supported until after the release of F14, which is to say, until around december 2010.

As for the OP, why would a reinstall of Chrome mean losing all your bookmarks and customisations ? This isn't windows where a whole ecosystem is wiped out if you uninstall something. All your stuff is saved to a folder / file in your home directory. A reinstall will pick those up when it runs.

And your yum experience is showing that chrome is not installed. Did you try installing it ? You don't have to uninstall it, because yum doesn't think it's installed anyway, and will fail.

mejohnsn 06-12-2010 03:59 AM

Quote:

Originally Posted by smoker (Post 4000939)
On the other hand, I have never had one fail.

If you have a problem with fedora, fair enough, but you seem to be pushing an anti fedora agenda on every post you make recently.
Fedora 12 will be supported until after the release of F14, which is to say, until around december 2010.

As for the OP, why would a reinstall of Chrome mean losing all your bookmarks and customisations ? This isn't windows where a whole ecosystem is wiped out if you uninstall something. All your stuff is saved to a folder / file in your home directory. A reinstall will pick those up when it runs.

And your yum experience is showing that chrome is not installed. Did you try installing it ? You don't have to uninstall it, because yum doesn't think it's installed anyway, and will fail.

Your conclusion about "the yum experience" is simply WRONG. It IS installed, as it has been for many months before the upgrade. You should have been able to figure this out from my previous post, which showed the binary executing from the right place.

smoker 06-12-2010 04:14 AM

Quote:

It appears not, since "yum update google-chrome-stable" did no update, printing instead, "Package(s) google-chrome-stable available, but not installed.
No Packages marked for Update"

Substituging 'upgrade' for 'update' fails in the same way.
What does that tell you ?

As far as yum is concerned it is not installed. This happens sometimes after upgrading the OS. links get broken, libraries are not replaced, etc, etc.

So I am completely wrong, but you still don't have chrome working. Carry on then.

Or follow my suggestion. It's up to you.

mejohnsn 06-13-2010 10:38 PM

Quote:

Originally Posted by smoker (Post 4000964)
What does that tell you ?

As far as yum is concerned it is not installed. This happens sometimes after upgrading the OS. links get broken, libraries are not replaced, etc, etc.

So I am completely wrong, but you still don't have chrome working. Carry on then.

Or follow my suggestion. It's up to you.

I did not follow your suggestions. Not any of them. And I DO have Chrome working now. So for your own good, and for the good of the forum, admit your errors.

How did I get it working? By executing the command-line invocation of google-chrome over and over, creating/redirecting the soft-links in Chrome's installation directory pointing them to the real libraries which now all live in /usr/lib/.

I didn't keep a complete list of the commands, but for the benefit of anyone else who runs into the same problem and looks up this thread, a couple typical such commands were (while logged in as superuser):

778 ln -s --force /usr/lib/libnss3.so libnss3.so.1d
786 ln -s --force /usr/lib/libmime3.so libmime3.so.1d

I do not pretend this is the ideal solution, I suspect it will break the next time I update either Chrome or Fedora, but now I am up and running, and with all my original configuration intact, though I had to turn the bookmark bar back on myself also.

John VV 06-13-2010 11:09 PM

Quote:


ln -s --force /usr/lib/libnss3.so libnss3.so.1d
ln -s --force /usr/lib/libmime3.so libmime3.so.1d
this works most of time if it is only one version newer , but not always.

fedora 12 hits it's End of life in 6 months.

mejohnsn 06-13-2010 11:14 PM

Quote:

Originally Posted by John VV (Post 4000902)
upgrades in fedora very often do not work . in the past 5 years i have never had one work correctly

the bookmarks should be in a .google??? something folder in your home folder


that says it all there is no lib called libnss3.so.1d
is there a /usr/lib/libnss3.so file ? if so a link might fix it ???
i have a /usr/lib/libnss3.so in my up to date Arch
fedora 12 is 6 months old

Some of us realize wrong answers are worse than no answer. Yours is wrong, too: there IS a library with that name -- as there has been since I originally installed Chrome long ago. And there is a softlink that tried to point to it. The problem was that the link points to the wrong directory.

In fact, this looks to me like a good example of how NOT to use softlinks: the Chrome directory had several softlinks, all of them pointing to the wrong directory. I have now pointed them to the right directory, so things now work, though this fix sounds fragile to me. As I already pointed out in another post, I will not be surprised if the fix breaks the next time I try to update Chrome or Fedora. But perhaps by then the people who do Chrome (or its package) will find a better way to use softlinks.

If not, then I will go through the same thing again. It doesn't look so hard now.

Another thing you got wrong: there is no subdirectory of my home directory with a name beginning with ".google".

I once saw where google-chrome keeps its settings, but I forget now. I just know it is not where you say.

DrLove73 06-14-2010 06:18 AM

Quote:

Originally Posted by mejohnsn (Post 4002680)
Some of us realize wrong answers are worse than no answer. Yours is wrong, too: there IS a library with that name -- as there has been since I originally installed Chrome long ago. And there is a softlink that tried to point to it. The problem was that the link points to the wrong directory.
In fact, this looks to me like a good example of how NOT to use softlinks: the Chrome directory had several softlinks, all of them pointing to the wrong directory. I have now pointed them to the right directory, so things now work, though this fix sounds fragile to me. As I already pointed out in another post, I will not be surprised if the fix breaks the next time I try to update Chrome or Fedora. But perhaps by then the people who do Chrome (or its package) will find a better way to use softlinks.

If not, then I will go through the same thing again. It doesn't look so hard now.

Problem is not in physical existence of the library, it's in where your system is looking for them. I am assuming that FC13 rearranged where they will keep certain files and libraries opposed to where FC12 was keeping them. I will also assume that for that reason, upgrade procedure has moved your libraries to another location, but since Chrome has it's own generic installation procedure and uses symlinks that were not updated along with the libraries locations.

Google has to use symlink approach since they are creating one generic installer for very large number of distro's. Simple reinstallation would fix things at once.

What you do not realize is that reinstallation would have fixed your symlinks but would NOT touch your settings residing in your /home/$USER folder. That is the fact of life, and both posters trying to help you where correct suggesting reinstallation.

Quote:

Originally Posted by mejohnsn (Post 4002680)
Another thing you got wrong: there is no subdirectory of my home directory with a name beginning with ".google".
I once saw where google-chrome keeps its settings, but I forget now. I just know it is not where you say.

His exact sentence was:
Quote:

the bookmarks should be in a .google??? something folder in your home folder
. He never said it IS exactly there. "/home/$USER/.googleearth" subfolder is used by Google for Google Earth, so @JohnVV made an assumption, trying to help you.
Chromium settings for user SHOULD be stored in:
Quote:

/home/$USER/.config/chromium is where your user data is kept, just like on Windows.
/home/$USER/.cache/chromium is where Chrome's cache files are kept.
You trying to be smarter then people doing this for several years was/is the wrong path, but suite your self. But take a look at the ratio of the number of people thanking them vs. number of posts and all should be clear to you.

John VV 06-14-2010 04:03 PM

things get set in /home/$USER/.config/?? from time to time
but the .config folder is the " zebra " and a .programName is the "horse "

if you fallow the look for a horse BEFORE looking for a zebra .

when using the "pre-upgrade" ( the RECOMMENDED program ) - and not "yum upgrade"
links WILL get broken -- that is a fact of life --
some programs that use older versions of *.so s might not work with newer ones ( libpng14 is an example of this)

upgrading fedora dose NOT upgrade or update and program that was not installed using yum
if this version of chrome was NOT in the repo ( fedora 11 it was not ) it would not have been updated

i do think there is a fedora rpm of chrome in the fedora 13 repo so in 13 it should be posable to install it using yum .

mejohnsn 06-15-2010 03:28 PM

Quote:

Originally Posted by DrLove73 (Post 4002965)
His exact sentence was:. He never said it IS exactly there. "/home/$USER/.googleearth" subfolder is used by Google for Google Earth, so @JohnVV made an assumption, trying to help you.
Chromium settings for user SHOULD be stored in:


You trying to be smarter then people doing this for several years was/is the wrong path, but suite your self. But take a look at the ratio of the number of people thanking them vs. number of posts and all should be clear to you.

And he made a bad assumption, one that rendered his post entirely unhelpful. That was my point.

And not, despite your lying characterization, pointing that out is NOT "trying to be smarter then[sic] people doing this for several years". Stop playing mind-reader: you are no good at it.

For that matter, take your own advice: take a look at that ratio: you will see that a LOT of other people chose not to thank them for their posts. They all have only about a tenth as many thanks as posts.

I can see why they were not thanked. And when they were thanked, they were probably a lot more polite than they have been in this thread.

DrLove73 06-15-2010 05:52 PM

:-D, whatever.

John VV 06-15-2010 06:10 PM

at this point

close the thread


All times are GMT -5. The time now is 12:36 PM.