Page 1 of 1

run Chrome latest in Xenial

Posted: Wed Mar 13, 2024 12:30 am
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.


Re: run Chrome latest in Xenial

Posted: Wed Mar 13, 2024 4:04 am
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.


Re: run Chrome latest in Xenial

Posted: Wed Mar 13, 2024 8:04 am
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.


`GLIBC_2.25' not found

Posted: Fri Sep 27, 2024 12:44 am
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 &