하드웨어 : 라즈베리파이 3+

OS : Raspbian 10 (buster)

 

1. 의존성 라이브러리 설치

sudo apt-get update

sudo apt install -y libffi-dev libbz2-dev liblzma-dev \
    libsqlite3-dev libncurses5-dev libgdbm-dev zlib1g-dev \
    libreadline-dev libssl-dev tk-dev build-essential \
    libncursesw5-dev libc6-dev openssl git

2. python 3.8 설치

cd /home/pi

mkdir pkg_install

cd pkg_install

mkdir pkg_python

cd pkg_python

wget "https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz"

tar xvfz ./Python-3.8.0.tgz

cd Python-3.8.0

./configure

make -j 6

sudo make install

 

3. Python 3.8 pip 설치

cd /home/pi/pkg_install/pkg_python

wget https://bootstrap.pypa.io/get-pip.py

sudo python3 ./get-pip.py



4. Chromium Driver 설치

cd /home/pi/pkg_install

mkdir pkg_chromium

cd pkg_chromium

wget "http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-codecs-ffmpeg_75.0.3770.90-0ubuntu0.18.10.1_armhf.deb"

wget "http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-codecs-ffmpeg-extra_75.0.3770.90-0ubuntu0.18.10.1_armhf.deb"

wget "http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser_75.0.3770.90-0ubuntu0.18.10.1_armhf.deb"

wget "http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-chromedriver_75.0.3770.90-0ubuntu0.18.10.1_armhf.deb"

 

sudo dpkg -i ./chromium-codecs-ffmpeg_75.0.3770.90-0ubuntu0.18.10.1_armhf.deb

sudo dpkg -i ./chromium-codecs-ffmpeg-extra_75.0.3770.90-0ubuntu0.18.10.1_armhf.deb

sudo dpkg -i ./chromium-browser_75.0.3770.90-0ubuntu0.18.10.1_armhf.deb

sudo dpkg -i chromium-chromedriver_75.0.3770.90-0ubuntu0.18.10.1_armhf.deb

 

 

위 명령 중 sudo dpkg 수행시 다음과 같은 오류가 발생 한다면?

sudo dpkg -i ./chromium-browser_75.0.3770.90-0ubuntu0.18.10.1_armhf.deb 
(Reading database ... 45515 files and directories currently installed.)
Preparing to unpack .../chromium-browser_75.0.3770.90-0ubuntu0.18.10.1_armhf.deb ...
Unpacking chromium-browser (75.0.3770.90-0ubuntu0.18.10.1) over (75.0.3770.90-0ubuntu0.18.10.1) ...
dpkg: dependency problems prevent configuration of chromium-browser:
 chromium-browser depends on libatk-bridge2.0-0 (>= 2.5.3); however:
  Package libatk-bridge2.0-0 is not installed.
 chromium-browser depends on libatk1.0-0 (>= 2.2.0); however:
  Package libatk1.0-0 is not installed.
 chromium-browser depends on libatspi2.0-0 (>= 2.9.90); however:
  Package libatspi2.0-0 is not installed.
 chromium-browser depends on libcairo2 (>= 1.6.0); however:
  Package libcairo2 is not installed.
 chromium-browser depends on libcups2 (>= 1.4.0); however:
  Package libcups2 is not installed.
 chromium-browser depends on libgdk-pixbuf2.0-0 (>= 2.22.0); however:
  Package libgdk-pixbuf2.0-0 is not installed.
 chromium-browser depends on libgtk-3-0 (>= 3.9.10); however:
  Package libgtk-3-0 is not installed.
 chromium-browser depends on libnspr4 (>= 2:4.9-2~); however:
  Package libnspr4 is not installed.
 chromium-browser depends on libnss3 (>= 2:3.22); however:
  Package libnss3 is not installed.
 chromium-browser depends on libpango-1.0-0 (>= 1.14.0); however:
  Package libpango-1.0-0 is not installed.
 chromium-browser depends on libxcursor1 (>> 1.1.2); however:
  Package libxcursor1 is not installed.
 chromium-browser depends on xdg-utils; however:
  Package xdg-utils is not installed.

dpkg: error processing package chromium-browser (--install):
 dependency problems - leaving unconfigured
Processing triggers for mime-support (3.62) ...
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
 chromium-browser

sudo apt-get -f install

위 명령으로 의존성 오류난 라이브러리를 모두 설치 하기

 

+ Recent posts