일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- kubernetes자동완성
- k8s-device-plugin
- BigSur
- RunContainerError
- mac m1
- 삶이란...
- nvidia-driver-plugin
- kubectl completion bash
- nvidia-docker
- face verification
- nvidia-container-cli
- k8s
- 넘무무서웡...
- GPU
- kubernetes
- macm1
- 얼굴검출
- Pods Evicted
- ₩
- worker node
- k8s-driver-plugin
- kubectl #
- 얼굴분류
- k8s고장나면
- #kubernetes
- Kotlin
- Kubernets 이론
- 코틀린
- #Kuberspawner
- kotin
- Today
- Total
더듬이
dpkg error 해결 방법 dpkg: warning: not found in PATH or not executable 본문
결과적으로 말하면 위의 error시에는 두가지 문제가 있을 수있다.
1. /etc/sudors 랑 echo $PATH로 확인했을때 PATH가 잘못되었거나
2. not found 된 명령어가 없거나
나의 경우 2번째 문제였다.
이번에 nginx를 좀 공부하면서 nginx lua 기능을 사용해보려 했다...
nginx-extras 명령얼를 사용하니 아래와 같은 패키지가 종속성에 걸려서 재설치 하려 했다....
apt-get install nginx-extras
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nginx-extras : Depends: libc6 (>= 2.27) but 2.23-0ubuntu10 is to be installed
Depends: libssl1.1 (>= 1.1.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
바로 apt-get update ; apt-get upgradeapt-get --with-new-pkgs upgrade 명령어를 날렸으나 위의 libc6 패키지는 kept back라서수동으로설치해야 할듯 했다...
apt-get install libc6
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libvpx3 linux-libc-dev
Use 'sudo apt autoremove' to remove them.
Suggested packages:
glibc-doc locales
The following packages will be REMOVED:
build-essential g++ g++-5 libc-bin libc-dev-bin libc6-dev libexpat1-dev libpython3-dev libpython3.5-dev libstdc++-5-dev locales
python3-dev python3.5-dev ubuntu-minimal
The following packages will be upgraded:
libc6
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
libc-bin
1 upgraded, 0 newly installed, 14 to remove and 32 not upgraded.
Need to get 2,832 kB of archives.
After this operation, 125 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
여기서 부터 이상했다 Yes, do as I say!를 입력하라고 한 순간부터 불안했지만 어차피 docker 니까 라는 생각에 go 했다.
그리고 그뒤부터 apt install 관련 명령어는 다 고장났다 ;;;;
뭘 인스톨 하던간에 아래와 같은 내용 나오면서 중단되었다. 보니까 PATH에 저 세개가 없다는 것 같은데....
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
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.
Extracting templates from packages: 100%
Preconfiguring packages ...
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
근데 /etc/sudores에 가면 path는 잘되어있다...
root유저에서 echo $PATH를 해봐도 원하는 path 모두 있다,....
vi /etc/sudores
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
path가 정상이면 path에서 원하는게 없다는 건데 다시 잘 읽어보니
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encodingg.pm line16.
dpkg: warning: 'ldconfig' not found in PATH or not executable
두개 명령어를 실행해야하는데 명령어가 없나보다. 잘찾아보니
askubuntu.com/questions/847615/perl-warning-falling-back-to-the-standard-locale-c
에서
Both /usr/bin/locale and /sbin/ldconfig are in package libc-bin. Install that package to fix your errors.
란 힌트를 얻을 수 있었다.
lib-bin을 설치해주면 될것 같은데 문제는 dpkg가 안되서 수동설치해야한다.
아래를 따라한다.
mkdir /tmp/lib-bin-files
cd /tmp/lib-bin-files
apt-get update
apt-get download lib-bin
ar -x libc-bin_*.deb
tar -xf data.tar.xz
cp ./usr/bin/locale /usr/bin
cp ./sbin/ldconfig /sbin
이렇게 해주면 끝! 다시 정상 작동한다!
'공부 정리' 카테고리의 다른 글
[CS 지식] UDP 와 TCP/IP 개념 및 차이 (0) | 2021.06.07 |
---|