emacs25: error while loading shared libraries: libotf.so.0: cannot open shared object file: No such file or directory
Programming/Ubuntu 2022. 7. 4. 15:56웬일인지 간만에 패키지를 업데이트 할려니 에러가 난다.
====================================================
$ sudo apt-get install -y git-el
Reading package lists... Done
Building dependency tree
Reading state information... Done
git-el is already the newest version (1:2.17.1-1ubuntu0.11).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up git-el (1:2.17.1-1ubuntu0.11) ...
Install git for emacs
Install git for emacs25
install/git: Handling install of emacsen flavor emacs25
install/git: Byte-compiling for emacs25
+ emacs25 -batch -q -no-site-file -f batch-byte-compile git.el git-blame.el
emacs25: error while loading shared libraries: libotf.so.0: cannot open shared object file: No such file or directory
ERROR: install script from git package failed
dpkg: error processing package git-el (--configure):
installed git-el package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of git-all:
git-all depends on git-el; however:
Package git-el is not configured yet.
dpkg: error processing package git-all (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
git-el
git-all
E: Sub-process /usr/bin/dpkg returned an error code (1)
====================================================
저 시커먼 놈이 원인으로 보인다. 왜 그런지 찾아보자.
=======================================
$ locate libotf.so.0
$
=======================================
파일이 읍써???????
emacs를 다시 인스톨해보자.
=========================================
$ sudo apt install --reinstall emacs
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 1748 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://kr.archive.ubuntu.com/ubuntu bionic/main amd64 emacs all 47.0 [1748 B]
Fetched 1748 B in 1s (1713 B/s)
(Reading database ... 239492 files and directories currently installed.)
Preparing to unpack .../archives/emacs_47.0_all.deb ...
Unpacking emacs (47.0) over (47.0) ...
Setting up emacs (47.0) ...
Setting up git-el (1:2.17.1-1ubuntu0.11) ...
Install git for emacs
Install git for emacs25
install/git: Handling install of emacsen flavor emacs25
install/git: Byte-compiling for emacs25
+ emacs25 -batch -q -no-site-file -f batch-byte-compile git.el git-blame.el
emacs25: error while loading shared libraries: libotf.so.0: cannot open shared object file: No such file or directory
ERROR: install script from git package failed
dpkg: error processing package git-el (--configure):
installed git-el package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of git-all:
git-all depends on git-el; however:
Package git-el is not configured yet.
dpkg: error processing package git-all (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
git-el
git-all
E: Sub-process /usr/bin/dpkg returned an error code (1)
==================================================================
뺑뺑이를 돈다...
찾아보니 emacs가 아니라 emacs nox이다.
다시 해보면..
==========================
$ sudo apt-get install emacs-nox
Reading package lists... Done
Building dependency tree
Reading state information... Done
emacs-nox is already the newest version (47.0).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
emacs-nox : Depends: emacs25-nox but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
=================================
고장이 났네??? 수정해보자
===============================
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
블라블라...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
W: APT had planned for dpkg to do more than it reported back (14 vs 18).
Affected packages: git-el:amd64
===============================
===============================
$ sudo apt-get install emacs-nox
Reading package lists... Done
Building dependency tree
Reading state information... Done
emacs-nox is already the newest version (47.0).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
=================================
잘 된거로 보인다.
결론
sudo apt --fix-broken install
'Programming > Ubuntu' 카테고리의 다른 글
ubuntu 20.04에서 fastboot가 인식이 안될 때 (0) | 2022.07.05 |
---|