2015년 1월 26일 월요일

Lubuntu 14.04 - Battle for wesnoth 설치 시 의존성 오류 해결

전문가가 쓴 글은 아니니 혹시 보는 사람은 참고만 하시길







Lubuntu 14.04에서 wesnoth를 설치할 때 의존성 문제가 생겼다.


lubuntu software center를 통해 wesnoth를 설치했으나 몇 개의 패키지가 불완전하게 깔린 건지 의존성 문제가 생긴 것.
 

오류 내용은 다음과 같다.

 
installArchives() failed: Selecting previously unselected package libboost-iostreams1.54.0:i386.
(Reading database ... 
(Reading database ... 5%%
(Reading database ... 10%%
(Reading database ... 15%%
(Reading database ... 20%%
(Reading database ... 25%%
(Reading database ... 30%%
(Reading database ... 35%%
(Reading database ... 40%%
(Reading database ... 45%%
(Reading database ... 50%%
(Reading database ... 55%%
(Reading database ... 60%%
(Reading database ... 65%%
(Reading database ... 70%%
(Reading database ... 75%%
(Reading database ... 80%%
(Reading database ... 85%%
(Reading database ... 90%%
(Reading database ... 95%%
(Reading database ... 100%%
(Reading database ... 189437 files and directories currently installed.)
Preparing to unpack .../libboost-iostreams1.54.0_1.54.0-4ubuntu3.1_i386.deb ...
Unpacking libboost-iostreams1.54.0:i386 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-program-options1.54.0:i386.
Preparing to unpack .../libboost-program-options1.54.0_1.54.0-4ubuntu3.1_i386.deb ...
Unpacking libboost-program-options1.54.0:i386 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-regex1.54.0:i386.
Preparing to unpack .../libboost-regex1.54.0_1.54.0-4ubuntu3.1_i386.deb ...
Unpacking libboost-regex1.54.0:i386 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-system1.54.0:i386.
Preparing to unpack .../libboost-system1.54.0_1.54.0-4ubuntu3.1_i386.deb ...
Unpacking libboost-system1.54.0:i386 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libsdl-net1.2:i386.
Preparing to unpack .../libsdl-net1.2_1.2.8-4_i386.deb ...
Unpacking libsdl-net1.2:i386 (1.2.8-4) ...
Selecting previously unselected package wesnoth-1.10-data.
Preparing to unpack .../wesnoth-1.10-data_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-data (1:1.10.7-1) ...
dpkg-deb (subprocess): decompressing archive member: internal gzip read error: '<fd:4>: incorrect data check'
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/wesnoth-1.10-data_1%%3a1.10.7-1_all.deb (--unpack):
 subprocess dpkg-deb --fsys-tarfile returned error exit status 2
No apport report written because the error message indicates an issue on the local system
Selecting previously unselected package wesnoth-1.10-core.
Preparing to unpack .../wesnoth-1.10-core_1%%3a1.10.7-1_i386.deb ...
Unpacking wesnoth-1.10-core (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10-httt.
Preparing to unpack .../wesnoth-1.10-httt_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-httt (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10-tsg.
Preparing to unpack .../wesnoth-1.10-tsg_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-tsg (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10-trow.
Preparing to unpack .../wesnoth-1.10-trow_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-trow (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10-ttb.
Preparing to unpack .../wesnoth-1.10-ttb_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-ttb (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10-ei.
Preparing to unpack .../wesnoth-1.10-ei_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-ei (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10-utbs.
Preparing to unpack .../wesnoth-1.10-utbs_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-utbs (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10-did.
Preparing to unpack .../wesnoth-1.10-did_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-did (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10-nr.
Preparing to unpack .../wesnoth-1.10-nr_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-nr (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10-sof.
Preparing to unpack .../wesnoth-1.10-sof_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-sof (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10-sotbe.
Preparing to unpack .../wesnoth-1.10-sotbe_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-sotbe (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10-l.
Preparing to unpack .../wesnoth-1.10-l_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-l (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10-aoi.
Preparing to unpack .../wesnoth-1.10-aoi_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-aoi (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10-thot.
Preparing to unpack .../wesnoth-1.10-thot_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-thot (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10-low.
Preparing to unpack .../wesnoth-1.10-low_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-low (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10-dm.
Preparing to unpack .../wesnoth-1.10-dm_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-dm (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10-dw.
Preparing to unpack .../wesnoth-1.10-dw_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-dw (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10.
Preparing to unpack .../wesnoth-1.10_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10 (1:1.10.7-1) ...
Selecting previously unselected package wesnoth-1.10-music.
Preparing to unpack .../wesnoth-1.10-music_1%%3a1.10.7-1_all.deb ...
Unpacking wesnoth-1.10-music (1:1.10.7-1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/wesnoth-1.10-data_1%%3a1.10.7-1_all.deb
Error in function: 
Setting up libboost-system1.54.0:i386 (1.54.0-4ubuntu3.1) ...
dpkg: dependency problems prevent configuration of wesnoth-1.10:
 wesnoth-1.10 depends on wesnoth-1.10-data (= 1:1.10.7-1); however:
  Package wesnoth-1.10-data is not installed.

dpkg: error processing package wesnoth-1.10 (--configure):
 dependency problems - leaving unconfigured
Setting up libsdl-net1.2:i386 (1.2.8-4) ...
Setting up wesnoth-1.10-music (1:1.10.7-1) ...
Setting up libboost-iostreams1.54.0:i386 (1.54.0-4ubuntu3.1) ...
Setting up libboost-program-options1.54.0:i386 (1.54.0-4ubuntu3.1) ...
Setting up libboost-regex1.54.0:i386 (1.54.0-4ubuntu3.1) ...
dpkg: dependency problems prevent configuration of wesnoth-1.10-core:
 wesnoth-1.10-core depends on wesnoth-1.10-data (= 1:1.10.7-1); however:
  Package wesnoth-1.10-data is not installed.

dpkg: error processing package wesnoth-1.10-core (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wesnoth-1.10-low:
 wesnoth-1.10-low depends on wesnoth-1.10-core (>= 1:1.10); however:
  Package wesnoth-1.10-core is not configured yet.
 wesnoth-1.10-low depends on wesnoth-1.10-core (<< 1:1.11); however:
  Package wesnoth-1.10-core is not configured yet.

dpkg: error processing package wesnoth-1.10-low (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wesnoth-1.10-utbs:
 wesnoth-1.10-utbs depends on wesnoth-1.10-core (>= 1:1.10); however:
  Package wesnoth-1.10-core is not configured yet.
 wesnoth-1.10-utbs depends on wesnoth-1.10-core (<< 1:1.11); however:
  Package wesnoth-1.10-core is not configured yet.

dpkg: error processing package wesnoth-1.10-utbs (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wesnoth-1.10-thot:
 wesnoth-1.10-thot depends on wesnoth-1.10-core (>= 1:1.10); however:
  Package wesnoth-1.10-core is not configured yet.
 wesnoth-1.10-thot depends on wesnoth-1.10-core (<< 1:1.11); however:
  Package wesnoth-1.10-core is not configured yet.

dpkg: error processing package wesnoth-1.10-thot (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wesnoth-1.10-ei:
 wesnoth-1.10-ei depends on wesnoth-1.10-core (>= 1:1.10); however:
  Package wesnoth-1.10-core is not configured yet.
 wesnoth-1.10-ei depends on wesnoth-1.10-core (<< 1:1.11); however:
  Package wesnoth-1.10-core is not configured yet.

dpkg: error processing package wesnoth-1.10-ei (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wesnoth-1.10-sotbe:
 wesnoth-1.10-sotbe depends on wesnoth-1.10-core (>= 1:1.10); however:
  Package wesnoth-1.10-core is not configured yet.
 wesnoth-1.10-sotbe depends on wesnoth-1.10-core (<< 1:1.11); however:
  Package wesnoth-1.10-core is not configured yet.

dpkg: error processing package wesnoth-1.10-sotbe (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wesnoth-1.10-trow:
 wesnoth-1.10-trow depends on wesnoth-1.10-core (>= 1:1.10); however:
  Package wesnoth-1.10-core is not configured yet.
 wesnoth-1.10-trow depends on wesnoth-1.10-core (<< 1:1.11); however:
  Package wesnoth-1.10-core is not configured yet.

dpkg: error processing package wesnoth-1.10-trow (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wesnoth-1.10-did:
 wesnoth-1.10-did depends on wesnoth-1.10-core (>= 1:1.10); however:
  Package wesnoth-1.10-core is not configured yet.
 wesnoth-1.10-did depends on wesnoth-1.10-core (<< 1:1.11); however:
  Package wesnoth-1.10-core is not configured yet.

dpkg: error processing package wesnoth-1.10-did (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wesnoth-1.10-nr:
 

 
시냅틱 패키지 관리자를 열어보면 깨진 패키지가 두 개 나왔다.
 
시냅틱 패키지 관리자에서 깨진 패키지 고치기를 해도 해결이 안 됨. 
 
 
 
 
 
 
위의 경우에 이렇게 해결했다.
 
1. 에러 내용 중 붉은 색으로 표시한 부분의 경로와 파일명을 복사해둔다.
 
2. pcmanfm을 통해 /var/cache/apt/ 폴더로 간다. archives 폴더를 우클릭 후, '터미널 열기'
 
3. 이제 오류가 났던 파일인 wesnoth-1.10-data_1%%3a1.10.7-1_all.deb를 찾아 삭제하고 다시 설치할 것이다.
 
   터미널에 sudo rm wesnoth-1.10-data_1%%3a1.10.7-1_all.deb를 명령어를 입력하고, 파일을 삭제해준다.
 
4. 다 됐으면 시냅틱 패키지 관리자로 들어가서 깨진 패키지 고치기를 해주면 정상적으로 wesnoth가 설치된다. 
 
 
 
 
 
 
 
 
참고한 글 


* 우분투 터미널 명령어 정리(티스토리 블로그)

댓글 없음:

댓글 쓰기