나름 IT 이야기
Ubuntu Linux 에서 Firefox 브라우저 설치하기
도림천 버섯돌이
2025. 2. 15. 09:54
2025.2.14
각종 Ubuntu 배포판에서 Firefox 를 추가로 설치할 경우가 간혹 있는데, Firefox 홈페이지에 친절하게 나온 내용을 발견하였습니다. 필요한 부분이라서 블로그에 옮겨 놓습니다. 이렇게 저장소로 등록하여 설치한 경우 나중에 apt upgrade 를 통해 업데이트까지 편하게 할 수 있는 장점이 있습니다.
1. 홈페이지 안내대로 설치하기
Install Firefox on Linux | Firefox Help
Many Linux distributions come with Firefox pre-installed through their package manager and set as the default browser. However, if you need to install Firefox on Linux using a different method, the following guide will show you various alternative ways to
support.mozilla.org
Install Firefox .deb package for Debian-based distributions (Recommended)
To install the .deb package through the APT repository, do the following:
- Create a directory to store APT repository keys if it doesn't exist:
sudo install -d -m 0755 /etc/apt/keyrings - Import the Mozilla APT repository signing key:
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null
If you do not have wget installed, you can install it with: sudo apt-get install wget - The fingerprint should be 35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3. You may check it with the following command:
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 expected one.\n"}' - Next, add the Mozilla APT repository to your sources list:
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 - Configure APT to prioritize packages from the Mozilla repository:
echo '
Package: *
Pin: origin packages.mozilla.org
Pin-Priority: 1000
' | sudo tee /etc/apt/preferences.d/mozilla - Update your package list, and install the Firefox .deb package:
sudo apt-get update && sudo apt-get install firefox
2. Firefox ESR(Extended Support Release) 설치
예전에 Termux 설치할때는 다음처럼 진행했었네요. 참고용.
-- PPA를 추가해서 Firefox-esr을 별도 설치해줘야합니다.
$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:mozillateam/ppa
$ sudo apt update
$ sudo apt install firefox-esr
$ sudo apt install fonts-noto-cjk
-- 최소 이것만 설치해도 한글이 나오기는 함. 브라우저 상단 타이틀바는 깨짐.
-- 한글 표시를 위한 폰트와 입력기를 설치해줍니다.
$ sudo apt install locales language-pack-ko
$ sudo apt install fonts-nanum* fonts-roboto
$ sudo apt install fcitx fcitx-hangul
-- 최근에는 이것대신 ubuntu 기본 한글 입력기인 ibus-hangul 을 설치해도 괜찮습니다.
$ sudo apt install ibus-hangul
반응형