9
August
2024
12:25

Mozill updatea Firefox в ОС Ubuntu и DebiaN

9 August 2024 12:25

It is possible to update the Mozill web browsera Firefox is not from the standard Linux repository, but from the developer PPA.

Firefox installation options

  1. From repository of the operating system (specified in the file /etc/apt/sources.list)
    1. From FLatpak. Магазин приложений flathub.orG offers Install FIrefox из FlaThub
  2. From ppa_repositorial of the developer (specified in the file /etc/apt/sources.list.d/mozilla.list)
  3. From the package file ( Deb or rpm ).
  4. From assembly files firefox-*.tar.bz2

Here, an option is considered from PPA -REPARATURE OF THE Developer - since applications are placed as updates for existing packages.

Brief plan for updating Mozilla Firefox

Source:Install Firefox on Linux - "Install Firefox .deb package for Debian-based distrIbutions "(EN) or Installation .deb package FIrefox для основанных на Debian Distributions (recommended) (Rus).

Firefox update consists of four stages:

  • Import of the Mozilla repository key using WGET and GPG
  • Adding a SOU type filerce-list для репозитория Mozilla PPA в систему, в папку /etc/apt/sources.list.d
  • Installation of priority PPA Mozilla over the full -time repository
  • Package updateapt-get update

To change the inscriptions in Firefox of the latest version into Russian:

  • Removing the old package language pack - файла руссификации (перевода на русский язык) предыдущей версии
  • Installation of a new package language pack - файла руссификации (перевода на русский язык) текущей версии
  • Switching the tongue in the program.

Detailed description of Mozill updatea Firefox

1) Creation of a directory /etc/apt/keyrings (если не существует), назначение ей прав доступа

ls -ld /etc/apt/keyrINGS

If the directory exists, we check the attributes.
Line drwxr-xr-x 2 root root , означает что права владельца root - rwx (7), группы root - r-x (5), остальным r-x (5), i.e. 755

  • Rights are established correctly.

  • If the catalog /etc /apt/keyrINGS does not exist, we create it with one team with the right rights

    sudo install -d -m 0755 /etc/apt/keyrINGS

  • If the rights do not match Drwxr-xr-x, задаём их с помощью chmOD

    sudo chmod -R 0755 /etc/apt/keyrINGS

2) Add to the operational system of the repository key. The import of the key signed by the PPA-Ro-Poposior Mozilla

wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/Null

(If WGET is not installed, it can be installed with a command sudo apt install wget).

3) Checking the repository key. Its imprint should correspond to 35baa0b33e9b396f59CA838C0BA5CE6DC6315A3

gpg -n -q --import --import-options import-show /etc/apt/keyrings/packages.mozilla.org.asc | awk '/pub/{getline; gsub(/^ +| +$/,""); if($0 == "35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3") print "\nThe key fingerprint matches ("$0 ").\n"; else print "\nVerification failed: the fingerprint ("$0 ") does not maTch The Expieded One. \ N "} '

Conclusion "Thekey fingerprint maTches (35baa0b33e9b396f59CA838C0BA5CE6DC6315A3). " means that the key is correct .

4) Now add a text file mozilla.list в каталог /etc/apt/sources.list.d с описанием PPA-репозитория Mozilla

echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/Null

The contents of the file can be viewed by the command:

cat /etc/apt/sources.list.d/mozilla.List

It must contain one line
deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main

5) APT configuration to increase the priority of the new Apt Mozilla repository before the system repository of the operating system

echo '
PackaGE: *
Pin: origin packages.mozilla.orG
Pin-Priorit: 1000
' | sudo tee /etc/apt/preferences.d/mozilla 

If you do not take this step, the update for our Firefox package will not be found.

View the contents of the filemozilla в каталоге preferEnces can be a team. It should be like this:

cat /etc/apt/preferences.d/mozilla 

P.ackaGE: *
PIN: Origin packages.mozilla.orG
Pin-Priority: 1000

6) updating the packet cache and installing the latest version of the Firefox browser

sudo apt-get update && sudo apt-get install firEfox -y

7) Before installing a new Russification file, you need to delete the Russian language package (language pack) the old version (128).

sudo apt purge firefox-locale-ru

8) Installation of a new package for Russification Firefox

sudo apt install firefox-l10n-ru -y

9) launch the browser and change the language of the menu and messages from English to Russian

  • Edit - preferences - поиск LanguaGE - Russian

10) Add the Russian language preferred for displaying web pages

  • Edit - Settings - Search Language - Select - Select the language that you prefer to display pages - Russian

To find out the version of Firefox - меню "Справка" - "О Firefox ". On the date of writing the article is the latest version 129.0,
and on January 15, 2025 - version 134.0.1.



Related publications