Debian 9を使用しています。texアプリケーションをインストールしようとしましたが、機能しませんでした。これで、Debianマシンに他のアプリケーションをインストールできなくなりました。
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にスペースを作る方法は?
公式ドキュメント の説明に従って/etc/apt/sources.list
を編集します。または、次の行をコピーしてtermialに貼り付けます。
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
使用する
Sudo aptの自動削除
そしてblechbitをインストールする
Sudo apt install bleachbit
bleachbitはあなたがあなたのデバイスから不要なファイルをきれいにするのに役立ちます