14.04LTSを使用しています。sudo apt-get -f install
ターミナルに入力すると、次のエラーが発生します。
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)
助けてください、ありがとう。
sudo dpkg-reconfigure -a
コメントで「実行してみてください」と言ったファイザンに応えて。私がそれを試みたとき、私はこのメッセージを受け取りました:
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
acpid stop/waiting
acpid start/running, process 11426
/var/lib/dpkg/info/activity-log-manager.postinst: 5: /var/lib/dpkg/info/activity-log-manager.postinst: ldconfig: not found
編集:
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)
うまくいく場合は、この回避策を試してください。異なるリリースまたはプレリリースされたアップデートに対して不安定なリポジトリをアクティブにしていないことを確認してください。ただし、14.04 LTSの場合は、->システム設定/ソフトウェアおよびアップデートのみをチェックインすることをお勧めします。
次に実行します:
sudo apt-get -f install
sudo dpkg-reconfigure libc6
sudo dpkg-reconfigure libc-bin
sudo apt-get install --reinstall libc6
sudo apt-get install --reinstall libc-bin
sudo apt-get dist-upgrade
他の方法:
ダウンロードlibc-bin
ここで例えば
次に、それを抽出する必要があります。
dpkg -x libc-bin*.deb unpacked/
ファイルをシステムにコピーします。
sudo cp unpacked/sbin/ldconfig /sbin/
または、次のコマンドでNautilusを開きます。
gksudo nautilus
このGUIの方法で、.deb
パッケージを右クリックし、ここで抽出を選択して、宛先の場所にコピーします。
その後:
sudo apt-get install --reinstall libc-bin
sudo apt-get install -f
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加