개발

우분투 dpkg: error processing archive 에러 해결

동고킴 2022. 2. 19. 21:59
반응형

우분투에서 갑자기 의존성이 깨져서 api-get upgrade를 했더니 오류가 발생

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 mariadb-server : Depends: mariadb-server-10.3 (>= 1:10.3.29-0ubuntu0.20.04.1) but 1:10.3.28+maria~focal is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

 

 

apt --fix-broken install를 수행함

또 에러 발생

dpkg: error processing archive /var/cache/apt/archives/mariadb-server-core-10.3_1%3a10.3.32-0ubuntu0.20.04.1_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/my_print_defaults', which is also in package mariadb-server-10.3 1:10.3.28+maria~focal
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
dpkg: regarding .../mariadb-server-10.3_1%3a10.3.32-0ubuntu0.20.04.1_amd64.deb containing mariadb-server-10.3:
 mariadb-server-10.3 conflicts with mysql-server-core-5.5
  mariadb-server-core-10.3 provides mysql-server-core-5.5 and is present and installed.

 

 

해결

sudo dpkg -i --force-overwrite  /var/cache/apt/archives/mariadb-server-core-10.3_1%3a10.3.32-0ubuntu0.20.04.1_amd64.deb
sudo apt --fix-broken install
반응형