저는 데비안 9를 사용하고 있습니다. tex 앱을 설치해봤는데 작동이 안되네요. 이제 내 데비안 컴퓨터에 다른 응용 프로그램을 설치할 수 없습니다.
root@debian:/etc/apt# apt-get install tuxpaint
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:
perl : Depends: perl-base (= 5.24.1-3+deb9u4) but 5.24.1-3+deb9u2 is to be installed
Depends: perl-modules-5.24 (>= 5.24.1-3+deb9u4) but 5.24.1-3+deb9u2 is to be installed
Depends: libperl5.24 (= 5.24.1-3+deb9u4) but 5.24.1-3+deb9u2 is to be installed
tuxpaint : Depends: tuxpaint-plugins-default (>= 1:0.9.22-1) but it is not going to be installed or
tuxpaint-plugins
Depends: tuxpaint-data (= 1:0.9.22-3) but it is not going to be installed
Depends: libsdl-mixer1.2 but it is not going to be installed
Depends: libsdl-pango1 but it is not going to be installed
Depends: libsdl-ttf2.0-0 but it is not going to be installed
Recommends: tuxpaint-config but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
또한 내가 시도할 때 apt --fix-broken install
:
root@debian:/home/midhun# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
aptitude-common authbind bnd fonts-texgyre glassfish-jmac-api groovy ivy
java-wrappers libaopalliance-java libasm-java libatinject-jsr330-api-java
libbcpg-java libbcprov-java libbindex-java libbsh-java libcdi-api-java
libcglib-java libclassworlds-java libcommons-cli-java libcommons-codec-java
libcommons-collections3-java libcommons-httpclient-java libcommons-io-java
libcommons-lang-java libcommons-lang3-java libcwidget3v5 libdom4j-java
libdoxia-core-java libeasymock-java libeclipse-aether-java
libfelix-osgi-obr-java libfindbugs-java
libgeronimo-interceptor-3.0-spec-java libgoogle-gson-java
libgpars-groovy-java libgradle-core-java libgradle-plugins-java
libguava-java libguice-java libhawtjni-runtime-java libhttpclient-java
libhttpcore-java libisorelax-java libjansi-java libjansi-native-java
libjarjar-java libjatl-java libjaxen-java libjcifs-java
libjcip-annotations-java libjcommander-java libjcsp-java libjdom1-java
libjetty9-extra-java libjetty9-java libjformatstring-java libjline2-java
libjna-java libjna-jni libjsoup-java libjsr166y-java libjsr305-java
libkryo-java libkxml2-java liblogback-java libmaven-parent-java
libmaven2-core-java libmaven3-core-java libminlog-java libmsv-java
libmultiverse-core-java libnative-platform-java libnative-platform-jni
libnekohtml-java libnetty-3.9-java libobjenesis-java libosgi-annotation-java
libosgi-compendium-java libosgi-core-java libplexus-ant-factory-java
libplexus-archiver-java libplexus-bsh-factory-java libplexus-cipher-java
libplexus-classworlds-java libplexus-classworlds2-java libplexus-cli-java
libplexus-component-annotations-java libplexus-component-metadata-java
libplexus-container-default-java libplexus-container-default1.5-java
libplexus-containers-java libplexus-containers1.5-java
libplexus-interactivity-api-java libplexus-interpolation-java
libplexus-io-java libplexus-sec-dispatcher-java libplexus-utils-java
libplexus-utils2-java libpolyglot-maven-java libqdox-java libqdox2-java
libreflectasm-java librelaxng-datatype-java librhino-java
libsimple-http-java libsisu-inject-java libsisu-plexus-java
libspring-beans-java libspring-core-java libtaglibs-standard-impl-java
libtaglibs-standard-spec-java libtcnative-1 libwagon-java libwagon2-java
libxbean-java libxom-java libxpp2-java libxpp3-java libxstream-java
libyaml-snake-java libyaml-tiny-perl ps2eps testng texlive-font-utils
texlive-fonts-recommended-doc texlive-generic-recommended texlive-latex-base
texlive-latex-recommended texlive-pictures tipa
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
libperl5.24 perl-base perl-modules-5.24
The following packages will be upgraded:
libperl5.24 perl-base perl-modules-5.24
3 upgraded, 0 newly installed, 0 to remove and 260 not upgraded.
1 not fully installed or removed.
Need to get 0 B/7,313 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 258549 files and directories currently installed.)
Preparing to unpack .../perl-base_5.24.1-3+deb9u4_i386.deb ...
Unpacking perl-base (5.24.1-3+deb9u4) over (5.24.1-3+deb9u2) ...
dpkg: error processing archive /var/cache/apt/archives/perl-base_5.24.1-3+deb9u4_i386.deb (--unpack):
cannot copy extracted data for './usr/lib/i386-linux-gnu/perl-base/lib.pm' to '/usr/lib/i386-linux-gnu/perl-base/lib.pm.dpkg-new': failed to write (No space left on device)
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/perl-base_5.24.1-3+deb9u4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@debian:/home/midhun# ^C
grep ^ /etc/apt/sources.list{,.d/*} 의 출력은 다음과 같습니다.
root@debian:/usr/bin# grep ^ /etc/apt/sources.list{,.d/*}
/etc/apt/sources.list:deb http://deb.debian.org/debian stretch main contrib non-free
/etc/apt/sources.list:deb-src http://deb.debian.org/debian stretch main contrib non-free
/etc/apt/sources.list:
/etc/apt/sources.list.d/getdeb.list:deb http://archive.getdeb.net/ubuntu xenial-getdeb apps
/etc/apt/sources.list.d/getdeb.list:deb http://archive.getdeb.net/ubuntu xenial-getdeb apps
/etc/apt/sources.list.d/java-8-debian.list:deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
/etc/apt/sources.list.d/java-8-debian.list:deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
/etc/apt/sources.list.d/java-8-debian.list.save:deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
/etc/apt/sources.list.d/java-8-debian.list.save:deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
/etc/apt/sources.list.d/nodesource.list:deb https://deb.nodesource.com/node_9.x stretch main
/etc/apt/sources.list.d/nodesource.list:deb-src https://deb.nodesource.com/node_9.x stretch main
/etc/apt/sources.list.d/nodesource.list.save:deb https://deb.nodesource.com/node_9.x stretch main
/etc/apt/sources.list.d/nodesource.list.save:deb-src https://deb.nodesource.com/node_9.x stretch main
/etc/apt/sources.list.d/stretch-backports.list:deb http://deb.debian.org/debian stretch-backports main contrib
/etc/apt/sources.list.d/stretch-backports.list.save:deb http://deb.debian.org/debian stretch-backports main contrib
/etc/apt/sources.list.d/sublime-text.list:deb https://download.sublimetext.com/ apt/stable/
/etc/apt/sources.list.d/sublime-text.list.save:deb https://download.sublimetext.com/ apt/stable/
/etc/apt/sources.list.d/webupd8team-ubuntu-atom-cosmic.list:deb http://ppa.launchpad.net/webupd8team/atom/ubuntu cosmic main
/etc/apt/sources.list.d/webupd8team-ubuntu-atom-cosmic.list:# deb-src http://ppa.launchpad.net/webupd8team/atom/ubuntu cosmic main
root@debian:/usr/bin#
이것은 df -h 명령의 출력입니다.
root@debian:/home/midhun# df -h
Filesystem Size Used Avail Use% Mounted on
udev 4.0G 0 4.0G 0% /dev
tmpfs 807M 9.4M 798M 2% /run
/dev/sda11 91G 11G 76G 12% /
/dev/sda13 9.2G 9.1G 0 100% /usr
tmpfs 4.0G 29M 4.0G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 4.0G 0 4.0G 0% /sys/fs/cgroup
/dev/sda15 9.2G 37M 8.6G 1% /tmp
/dev/sda16 9.2G 869M 7.8G 10% /usr/local
/dev/sda12 19G 18G 32M 100% /home
/dev/sda14 9.2G 4.6G 4.1G 53% /var
/dev/sda18 7.3G 34M 6.9G 1% /srv
/dev/sda19 15G 73M 14G 1% /boot
/dev/sda17 9.2G 1.2G 7.5G 14% /opt
tmpfs 807M 16K 807M 1% /run/user/115
tmpfs 807M 28K 807M 1% /run/user/1000
/usr에 공간을 만드는 방법은 무엇입니까?
답변1
사용
sudo apt 자동 삭제
그다음 블레치빗을 설치하세요
sudo apt 설치 블리치비트
Bleach Bit는 장치에서 불필요한 파일을 정리하는 데 도움이 됩니다.
답변2
/etc/apt/sources.list
설명된 대로 편집하세요.공식 문서. 또는 다음 줄을 복사하여 터미널에 붙여넣습니다.
cat <<EOF > /etc/apt/sources.list
deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free
deb http://deb.debian.org/debian-security/ stretch/updates main contrib non-free
deb-src http://deb.debian.org/debian-security/ stretch/updates main contrib non-free
deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free
EOF
Ubuntu 저장소 trusty, xenial 및 cosmic을 제거하십시오.
rm /etc/apt/sources.list.d/webupd8team-ubuntu-atom-cosmic.list
rm /etc/apt/sources.list.d/java-8-debian.list
rm /etc/apt/sources.list.d/getdeb.list
그런 다음 다음을 실행하십시오.
apt update && apt dist-upgrade
apt --fix-broken install
편집하다
다음 방법을 사용하여 시스템을 청소할 수 있습니다.
apt autoremove
apt clean
apt autoclean
이전 커널과 커널 헤더를 제거하고 다음을 통해 나열할 수 있습니다.
dpkg --list 'linux-headers*'
dpkg --list 'linux-image*'
그런 다음 패키지를 설치 및 구성하고 localpurge
(참고 자료 참조 man localepurge
) 실행합니다.
localepurge
예제 출력:
localepurge: Disk space freed in /usr/* : X KiB