apt-get을 사용하여 패키지를 설치할 때 오류가 발생했습니다.

apt-get을 사용하여 패키지를 설치할 때 오류가 발생했습니다.

texlive-full을 설치하려고 했으나 apt-get일부 ​​오류로 인해 설치가 중단되었습니다. 나중에 texlive 및 texmf와 관련된 모든 폴더와 파일을 수동으로 삭제했습니다. 그 이후로 모든 패키지에 대해 apt-get install을 사용하려고 하면 다음 오류가 발생합니다. 등을 시도했습니다 apt-get clean. aptitude clean누구든지 나를 도와줄 수 있나요? 이것이 dpkg오류가 발생하는 이유 라고 생각합니다 .

저는 Linux Mint를 사용하고 있으며 Linux를 처음 사용합니다. 아래에 오류 메시지를 붙여넣었습니다.

Setting up tex-common (3.13) ...
find: `/etc/texmf/texmf.d': No such file or directory
update-language-dat: cannot read /etc/texmf/hyphen.d/00tex.cnf
update-language-dat: if it was removed by accident, it has to be reinstalled with
update-language-dat:   t=$(mktemp -d); cd $t; apt-get download tex-common ; dpkg -i --force-confmiss tex-common*.deb
dpkg: error processing tex-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of latex-sanskrit:
 latex-sanskrit depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing latex-sanskrit (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of tex-gyre:
 tex-gyre depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing tex-gyre (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-latex-base:
 texlive-latex-base depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-latex-base (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of asymptote:
 asymptote depends on texlive-latex-base; however:
  Package texlive-latex-base is not configured yet.
 asymptote depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing asymptote (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of context:
 context depends on tex-gyre; however:
  Package tex-gyre is not configured yet.
 context depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing context (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of context-modules:
 context-modules depends on context (>> 2011); however:
  Package context is not configured yet.
 context-modules depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing context-modules (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ipe:
 ipe depends on texlive-latex-base; however:
  Package texlive-latex-base is not configured yet.

dpkg: error processing ipe (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-latex-recommended:
 texlive-latex-recommended depends on texlive-latex-base (>= 2012.20120516); however:
  Package texlive-latex-base is not configured yet.
 texlive-latex-recommended depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-latex-recommended (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-xcolor:
 latex-xcolor depends on texlive-latex-recommended; however:
  Package texlive-latex-recommended is not configured yet.
 latex-xcolor depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing latex-xcolor (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pgf:
 pgf depends on tex-common (>= 2.00); however:
  Package tex-common is not configured yet.
 pgf depends on texlive-latex-recommended; however:
  Package texlive-latex-recommended is not configured yet.
 pgf depends on latex-xcolor (>= 2.00-1); however:
  Package latex-xcolor is not configured yet.

dpkg: error processing pgf (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-beamer:
 latex-beamer depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.
 latex-beamer depends on pgf (>= 1.00-1); however:
  Package pgf is not configured yet.
 latex-beamer depends on latex-xcolor (>= 2.00-1); however:
  Package latex-xcolor is not configured yet.
 latex-beamer depends on texlive-latex-base; however:
  Package texlive-latex-base is not configured yet.

dpkg: error processing latex-beamer (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-cjk-chinese-arphic-bkai00mp:
 latex-cjk-chinese-arphic-bkai00mp depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing latex-cjk-chinese-arphic-bkai00mp (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-cjk-chinese-arphic-bsmi00lp:
 latex-cjk-chinese-arphic-bsmi00lp depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing latex-cjk-chinese-arphic-bsmi00lp (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-cjk-chinese-arphic-gbsn00lp:
 latex-cjk-chinese-arphic-gbsn00lp depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing latex-cjk-chinese-arphic-gbsn00lp (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-cjk-chinese-arphic-gkai00mp:
 latex-cjk-chinese-arphic-gkai00mp depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing latex-cjk-chinese-arphic-gkai00mp (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-cjk-japanese-wadalab:
 latex-cjk-japanese-wadalab depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing latex-cjk-japanese-wadalab (--configure):
 dependency problems - leaving unconfigured
Setting up m-tx (0.60d-5) ...
warning: kpathsea: configuration file texmf.cnf not found in these directories: /etc/texmf/web2c:/usr/share/texlive/texmf/web2c:/usr/share/texlive/texmf-dist/web2c:/usr/local/share/texmf/web2c.
/var/lib/dpkg/info/m-tx.postinst: 17: /var/lib/dpkg/info/m-tx.postinst: $TEXMFMAIN/web2c/mktexupd: not found
dpkg: error processing m-tx (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of musixtex:
 musixtex depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing musixtex (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of prosper:
 prosper depends on texlive-latex-base; however:
  Package texlive-latex-base is not configured yet.
 prosper depends on texlive-latex-recommended; however:
  Package texlive-latex-recommended is not configured yet.
 prosper depends on tex-common (>= 1.10); however:
  Package tex-common is not configured yet.

dpkg: error processing prosper (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-ar:
 texlive-doc-ar depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-ar (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-bg:
 texlive-doc-bg depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-bg (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-cs+sk:
 texlive-doc-cs+sk depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-cs+sk (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-de:
 texlive-doc-de depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-de (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-en:
 texlive-doc-en depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-en (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-es:
 texlive-doc-es depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-es (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-fi:
 texlive-doc-fi depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-fi (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-fr:
 texlive-doc-fr depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-fr (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-it:
 texlive-doc-it depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-it (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-ja:
 texlive-doc-ja depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-ja (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-ko:
 texlive-doc-ko depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-ko (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-mn:
 texlive-doc-mn depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-mn (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-nl:
 texlive-doc-nl depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-nl (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-pl:
 texlive-doc-pl depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-pl (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-pt:
 texlive-doc-pt depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-pt (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-rs:
 texlive-doc-rs depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-rs (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-ru:
 texlive-doc-ru depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-ru (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-si:
 texlive-doc-si depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-si (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-th:
 texlive-doc-th depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-th (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-tr:
 texlive-doc-tr depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-tr (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-uk:
 texlive-doc-uk depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-uk (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-vi:
 texlive-doc-vi depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-vi (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-zh:
 texlive-doc-zh depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-doc-zh (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-fonts-extra:
 texlive-fonts-extra depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-fonts-extra (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-fonts-extra-doc:
 texlive-fonts-extra-doc depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-fonts-extra-doc (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-fonts-recommended:
 texlive-fonts-recommended depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-fonts-recommended (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-fonts-recommended-doc:
 texlive-fonts-recommended-doc depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-fonts-recommended-doc (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-generic-extra:
 texlive-generic-extra depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-generic-extra (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-humanities-doc:
 texlive-humanities-doc depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-humanities-doc (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-lang-african:
 texlive-lang-african depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-lang-african (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-lang-arabic:
 texlive-lang-arabic depends on tex-common (>= 3); however:
  Package tex-common is not configured yet.

dpkg: error processing texlive-lang-arabic (--configure):
 dependency problems - leaving unconfigured
dpkg: too many errors, stopping
Errors were encountered while processing:
 tex-common
 latex-sanskrit
 tex-gyre
 texlive-latex-base
 asymptote
 context
 context-modules
 ipe
 texlive-latex-recommended
 latex-xcolor
 pgf
 latex-beamer
 latex-cjk-chinese-arphic-bkai00mp
 latex-cjk-chinese-arphic-bsmi00lp
 latex-cjk-chinese-arphic-gbsn00lp
 latex-cjk-chinese-arphic-gkai00mp
 latex-cjk-japanese-wadalab
 m-tx
 musixtex
 prosper
 texlive-doc-ar
 texlive-doc-bg
 texlive-doc-cs+sk
 texlive-doc-de
 texlive-doc-en
 texlive-doc-es
 texlive-doc-fi
 texlive-doc-fr
 texlive-doc-it
 texlive-doc-ja
 texlive-doc-ko
 texlive-doc-mn
 texlive-doc-nl
 texlive-doc-pl
 texlive-doc-pt
 texlive-doc-rs
 texlive-doc-ru
 texlive-doc-si
 texlive-doc-th
 texlive-doc-tr
 texlive-doc-uk
 texlive-doc-vi
 texlive-doc-zh
 texlive-fonts-extra
 texlive-fonts-extra-doc
 texlive-fonts-recommended
 texlive-fonts-recommended-doc
 texlive-generic-extra
 texlive-humanities-doc
 texlive-lang-african
 texlive-lang-arabic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

답변1

texlive 및 texmf와 관련된 모든 폴더와 파일을 수동으로 삭제했습니다.

아야.

이 패키지를 다시 설치해 볼 수 있습니다. 강제로 일이 일어나도록 해야 합니다. 먼저 패키지를 다운로드하십시오.

apt-get -d --reinstall install texlive texlive-common …

당신이 엉망으로 만든 모든 패키지를 나열해야합니다. 그런 다음 dpkg.

dpkg --unpack /var/cache/apt/archives/texlive* 

그런 다음 모두 구성해 보세요.

dpkg --configure -a
apt-get -f install

이것이 효과가 있을지 예측하기는 어렵습니다. 그래도 문제가 해결되지 않으면 영향을 받는 패키지를 제거하고 다시 설치하세요. 사전 제거 및 사후 제거 스크립트는 실패할 수 있으므로 제거해야 합니다.

rm /var/lib/dpkg/texlive*.post*
dpkg -r texlive-common texlive …
apt-get -f install
apt-get install texlive

답변2

파티에 조금 늦었지만 방금 이 문제에 부딪혔고 이 문제가 해결되었습니다.

패키지 중 하나를 제거해 보았지만 상황이 더 악화된 것 같았습니다. 그래서 재설치를 시도했지만 원래 게시물에서 이 문제로 인해 차단되었으므로 많은 검색 끝에 이것이 패키지 중 하나를 제거하여 발생한 문제와 관련이 있다는 것을 알게 되었습니다.

sudo -s
cd /var/cache/debconf
rm *.dat
apt-get update && apt-get upgrade

그 후 모든 것이 잘 작동하는 것처럼 보였고 문제가 해결되었습니다.

답변3

3개월 동안 시스템을 업데이트하지 않은 후에도 비슷한 문제가 발생했으며 다음과 같이 기록되었습니다.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description:    Linux Mint 20.1
Release:    20.1
Codename:   ulyssa

하지만 내 경우에는 수동으로 아무것도 삭제하지 않았고, 극단적인 조치를 취한 기억도 없습니다. 시도할 때 발생하는 오류는 apt upgrade다음과 같습니다.

dpkg: error processing package libglib2.0-0:i386 (--configure):
 dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for libglib2.0-0:i386:
 libglib2.0-0:i386 depends on libc6 (>= 2.28); however:
  Package libc6:i386 is not configured yet.
 libglib2.0-0:i386 depends on libmount1 (>= 2.28); however:
  Package libmount1:i386 is not configured yet.
 libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:
  Package zlib1g:i386 is not configured yet.

어쨌든, 상황을 복구하기 위해 제가 따랐던 단계는 다음과 같습니다. 현재까지는 효과가 있었던 것 같습니다.

$ sudo apt remove zlib1g:i386 libmount1:i386 libc6:i386 libglib2.0-0:i386

이로 인해 264개 이상의 항목을 포함하는 제거된 추가 기능 라이브러리 및 응용 프로그램의 인상적인 목록이 생성되었습니다. 전체 콘솔 출력을 packages_removed.txt라는 파일에 복사한 후 다음을 수행했습니다.

$ grep Removing packages_removed.txt | cut -d' ' -f2 > removed.txt
$ sudo apt install zlib1g:i386 libmount1:i386 libc6:i386 libglib2.0-0:i386
$ sudo apt autoremove --yes
$ xargs -n 1 -a removed.txt sudo apt install --yes
$ sudo apt update && sudo apt upgrade --yes

예상한 대로 마지막 명령으로 인해 시스템이 더 이상 변경되지 않았습니다.

관련 정보