run Chrome latest in Xenial

Moderator: Forum moderators

Post Reply
hikohan
Posts: 20
Joined: Wed Mar 13, 2024 12:08 am
Has thanked: 1 time
Been thanked: 4 times

run Chrome latest in Xenial

Post by hikohan »

get latest Chrome deb, startup met libnss version fail

upgrade system libnss above 3.3x is necessary.

download files:

  • nspr-4.30.tar.gz
    nss-3.63.tar.gz
    nss-3.63-standalone-1.patch

upgrade nspr first

Code: Select all

cd nspr                                                     &&
sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in &&
sed -i 's#$(LIBRARY) ##'            config/rules.mk         &&

./configure --prefix=/usr \
            --with-mozilla \
            --with-pthreads \
            $([ $(uname -m) = x86_64 ] && echo --enable-64bit) &&
make && make install

then upgrade nss

  1. patch

    Code: Select all

    patch -Np1 -i ../nss-3.63-standalone-1.patch
  2. compile

Code: Select all

cd nss && make BUILD_OPT=1                      \
  NSPR_INCLUDE_DIR=/usr/include/nspr  \
  USE_SYSTEM_ZLIB=1                   \
  ZLIB_LIBS=-lz                       \
  NSS_ENABLE_WERROR=0                 \
  $([ $(uname -m) = x86_64 ] && echo USE_64=1) \
  $([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1)
  1. install nss

Code: Select all

cd ../dist                                                          &&

install -v -m755 Linux*/lib/*.so              /usr/lib              &&
install -v -m644 Linux*/lib/{*.chk,libcrmf.a} /usr/lib              &&

install -v -m755 -d                           /usr/include/nss      &&
cp -v -RL {public,private}/nss/*              /usr/include/nss      &&

install -v -m755 Linux*/bin/{certutil,nss-config,pk12util} /usr/bin &&

install -v -m644 Linux*/lib/pkgconfig/nss.pc  /usr/lib/pkgconfig

after ldconfig update, install libgbm1_18.0.5 via PPM

reboot Xenial, and Chrome runs as

Code: Select all

./chrome --no-sandbox

although Firefox bundle newer NSS, upgrade newer NSS works Chrome & Opera browsers.

Last edited by hikohan on Wed Mar 13, 2024 8:00 am, edited 1 time in total.
User avatar
bigpup
Moderator
Posts: 6993
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 911 times
Been thanked: 1528 times

Re: run Chrome latest in Xenial

Post by bigpup »

What version of Xenialpup?

Xenialpup 7.5 (32bit)
Xenialpup64 7.5 (64bit)

Any topic about a Puppy version needs to always have the specific Puppy version info!
Full complete name of it's ISO is best to provide.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

hikohan
Posts: 20
Joined: Wed Mar 13, 2024 12:08 am
Has thanked: 1 time
Been thanked: 4 times

Re: run Chrome latest in Xenial

Post by hikohan »

Hi Bigpup!

There is only 64bit Chrome deb from Google avaliable.

My Xenial is:

Code: Select all

Xenialpup64 7.5 (64bit)
i7 4790 / 16G

Thanks for your help.

hikohan
Posts: 20
Joined: Wed Mar 13, 2024 12:08 am
Has thanked: 1 time
Been thanked: 4 times

`GLIBC_2.25' not found

Post by hikohan »

/u/tool/chrome/chrome: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /u/tool/chrome/chrome)

Xenial build-in glibc version is 2.23, latest Chrome needs > 2.25

Upgrade to 2.25

Code: Select all

wget "http://ftp.gnu.org/gnu/glibc/glibc-2.25.tar.bz2"

tar jxf glibc-2.25.tar.bz2

cd glibc-2.25

mkdir build

cd build

../configure  --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin

make && make install && ldconfig && wmreboot

After reboot, confirm GLIBC version updated.

Code: Select all

ldd --version

followed my Chrome upgrade script.

Code: Select all

#!/bin/sh

# chrome update for puppy
notify-send "Chrome update start..."

kill -9 `ps -e | grep chrome | awk '{print $1}'`

cd /tmp/
wget "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
mkdir chrome
dpkg -x google-chrome-stable_current_amd64.deb  chrome/
cd "/tmp/chrome/opt/google/chrome"; (tar cf - *) | (cd "/u/tool/chrome" ; tar xf -)

cd /tmp/
rm -rf chrome/ google-chrome-stable_current_amd64.deb

zenity --info --text="Chrome update completed!!" --title="Message" &> /dev/null &
Post Reply

Return to “Xenial”