728x90
반응형

디렉토리 내 실행 파일이 있음에도 파일을 찾지 못하는 경우

bash: ./[실행할 파일]: No such file or directory

64bit OS에서 32bit library 설치 없이, 32bit를 사용하는 실행 파일을 사용할 경우 발생

혹은 library 파일 연결이 불가한 경우

CPU: 64bit
File: 32bit

실행 파일과 CPU 포맷이 달라서 생기는 오류

sudo dpkg --add-architecture i386
sudo apt-get update

 

1) 패키지 설치(64bit에서도 32bit 파일을 실행할 수 있도록)

$ sudo apt-get install libc6-i386 lib32gcc1

dpkg: unrecoverable fatal error, aborting:
 files list file for package 'librpmio8' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

해결방안: librpmio8 목록 파일을 다시 만들어줌

sudo apt-get install --reinstall --download-only librpmio8

파일명 확인: librpmio8_4.14.2.1+dfsg1-1build2_amd64.deb

root@ubuntu:/var/cache/apt/archives# ls | grep librpmio8
librpmio8_4.14.2.1+dfsg1-1build2_amd64.deb
dpkg -c /var/cache/apt/archives/librpmio8_4.14.2.1+dfsg1-1build2_amd64.deb | \
awk '{if ($6 == "./"){ print "/."; } else if \
(substr($6, length($6), 1) == "/"){print \
substr($6, 2, length($6) - 2); } else { print \
substr($6, 2, length($6) - 1);}}' > \
/var/lib/dpkg/info/librpmio8.list

 

debugedit 패키지 파일 error에 대해, 동일하게 설정

debugedit_4.14.2.1+dfsg1-1build2_amd64.deb

dpkg -c /var/cache/apt/archives/debugedit_4.14.2.1+dfsg1-1build2_amd64.deb | \
awk '{if ($6 == "./"){ print "/."; } else if \
(substr($6, length($6), 1) == "/"){print \
substr($6, 2, length($6) - 2); } else { print \
substr($6, 2, length($6) - 1);}}' > \
/var/lib/dpkg/info/debugedit.list

libpython2.7:amd64 파일, ...

dpkg -c /var/cache/apt/archives/libpython2.7-stdlib_2.7.18-1~20.04.3_amd64.deb | \
awk '{if ($6 == "./"){ print "/."; } else if \
(substr($6, length($6), 1) == "/"){print \
substr($6, 2, length($6) - 2); } else { print \
substr($6, 2, length($6) - 1);}}' > \
/var/lib/dpkg/info/libpython2.7:arm64.list


libpython2.7_2.7.18-1~20.04.3_amd64.deb
libpython2.7-minimal_2.7.18-1~20.04.3_amd64.deb
libpython2.7-stdlib_2.7.18-1~20.04.3_amd64.deb
Try to fix it with

# rm /var/lib/dpkg/info/libopenjp2*
# dpkg --configure -a
# apt update
# apt upgrade

After that run Plesk update fix with:

# plesk installer --select-release-current --reinstall-patch --upgrade-installed-components

 

실행이 불가한 경우,

2) 64비트에서 32비트 컴파일이 동작 가능하도록 패키지 설치

$ sudo apt-get install ia32-libs g++-multilib

3) 추가 설치

$ sudo apt-get install lib32ncurses5, g++-multilib

정상 설치 및 실행

 

 

728x90
728x90

'Development > error' 카테고리의 다른 글

[Error] Ubuntu yum 설치 오류_Command 'yum' not found  (0) 2022.07.15
728x90
반응형

yum: Yellowdog Updater Modified, rpm 기반의 시스템을 위한 자동 업데이트 및 패키지 설치/삭제 도구

Command 'yum' not found, did you mean: /&nbsp;See 'snap info <snapname>' for additional versions.

root@ubuntu:/home/sehee# yum help

Command 'yum' not found, did you mean:

  command 'gum' from snap gum (0.12.0)
  command 'sum' from deb coreutils (8.30-3ubuntu2)
  command 'zum' from deb perforate (1.2-5.1)
  command 'uum' from deb freewnn-jserver (1.1.1~a021+cvs20130302-7build1)
  command 'num' from deb quickcal (2.4-1)

See 'snap info <snapname>' for additional versions.

ubuntu nginx에 yum 설치가 되어 있지 않기 때문에 생긴 오류

E: Unable to locate package yum

root@ubuntu:/etc/apt# sudo apt-get install yum

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package yum

ubuntu에서 package를 다운로드하는 홈페이지 주소가 추가되지 않음

(/etc/apt 폴더 내)

sudo cp source.list source.list.backup

sudo 명령어를 통하여 /etc/apt/source.list 수정

sudo vi sources.list

default sources.list code

sources.list 파일 내 us 삭제

http://us.archive.ubuntu.com/ubuntu http://archive.ubuntu.com/ubuntu

 

하단에 다음 url 입력(package를 설치하는)

deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse

업데이트 후 확인

sudo apt-get update

root@ubuntu:/etc/apt# sudo apt-get install yum

E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 5628 (unattended-upgr)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
sudo killall apt apt-get

# 진행 중인 파일이 없다면
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock*

sudo dpkg --configure -a

command 순서대로 설치하여 해결

apt-get install python-lzma python-sqlitecachec python-pycurl python-urlgrabber

 

728x90
728x90

'Development > error' 카테고리의 다른 글

[Error] bash 오류_No such file or directory  (0) 2022.08.03

+ Recent posts