Skip to content

Commit 61afe95

Browse files
authored
Fix for debian based distro
1 parent 12cc52a commit 61afe95

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Uninstall/ubchromiumfix.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
#!/bin/bash
22
echo "Removing distribution provided chromium packages and dependencies..."
3+
apt purge chromium* chromium-browser* -y -qq && apt autoremove -y -qq
34
sudo apt purge chromium* chromium-browser* -y -qq && apt autoremove -y -qq
45
echo "Enabling PPA support..."
56
[ ! -f .parrot ] && apt update -qq; apt install software-properties-common gnupg --no-install-recommends -y -qq
67
echo " Adding chromium-team stable ppa"
7-
sudo add-apt-repository ppa:ultrahacx/chromium-universal -y
8+
echo "deb http://ppa.launchpad.net/ultrahacx/chromium-universal/ubuntu bionic main
9+
deb-src http://ppa.launchpad.net/ultrahacx/chromium-universal/ubuntu bionic main " >> /etc/apt/sources.list
10+
echo "Fetching and importing chromium-team GPG keys..."
11+
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8FEA526CE21182D1
12+
echo "Installing chromium-browser"
813
apt update -qq; apt install chromium-browser --no-install-recommends -y
914
echo "Patching application shortcuts..."
1015
sed -i 's/chromium-browser %U/chromium-browser --no-sandbox %U/g' /usr/share/applications/chromium-browser.desktop
11-
echo 'alias chromium="chromium-browser --no-sandbox" >> /etc/profile'
12-
echo "You can now start chromium by using the application icon or by typing chromium" && . /etc/profile

0 commit comments

Comments
 (0)