Linux

리눅스 각종 에러

배너로드 2021. 6. 30. 10:43
728x90
반응형

여러 에러들의 해결방법을 쓸것이다.

계속 업데이트를 할것이며, 여기에 없는 오류가 있을경우 알려주시면 감사하겠다.

 

 

firefox 관련 에러

Running Firefox as root in a regular user's session is not supported.  ($XAUTHORITY is /home/root사용자/.Xauthority which is owned by ubuntu.)

<== 이런 오류는 firefox의(.Xauthority) 소유자는 root가 아닌데, root로 실행시키려고할 경우 발생한다. 

즉 .Xauthority의 파일 소유자를 root 로 바꿔줘야된다.

chown -R root:root /home/root사용자/.Xauthority 를 해주자

 

------------------------------------------------------------------------------------------

설치 관련 에러

Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge. Please verify its path and try again

<== 이 오류는 yum을 이용해서 다운받거나, 업데이트를 할경우 저장소를 찾을수 없을 경우 나타난다.

네트워크쪽에 문제가 있거나, 저장소목록에 없는것인데

네트워크문제는 간단하니 패스 하고, 저장소 목록은 rpmforge 를 설치하라고 하니 해당 저장소를 다운받자

rpm -e rpmforge-release

 

Not using downloaded repomd.xml because it is older than what we have:

<== 이오류는 Rrepomd.xml 파일이 오래되었을 경우 나타난다.

즉 저장소 미러가 오래된것이 있을경우 나타나는데, 모든 저장소 미러는 한꺼번에 업데이트 되지 않는 경우가 있으므로, 깨끗하기 밀고 업데이트 해주자

yum clean all

yum check-update

 

epel 오류

<== eple이 없어서 오류가 나서 epel을 다운받았는데 오류가 뜰경우 이 경우는 epel이 오래되서 그런것이다. 업데이트를 해주자

yum --disablerepo="epel" update nss.

 

multiple packages

<== 이 에러는 rpm이 중복되어있을경우 삭제하려고할때 뜰것이다.(아마도?? 확실하지 않음)

rpm --erase --allmatches 를 해주자

 

캐쉬메모리 값이 부족할경우 

sudo gedit /etc/apt/apt.conf.d/70debconf

<== 캐쉬 메모리값 부족하니깐

APT::Cache-Limit "100000000";

<== 파일끝에 추가

sudo apt-get cleansudo apt-get update --fix-missing

 

E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

가 뜨면

sudo killall apt apt-get

를 하자

만약 진행중인 프로세스가 없다라고하면

dpkg --configure -a -> apt update 를 해주자

그뒤 다시 다운

만약

dpkg: error: dpkg frontend lock is locked by another process

가 뜬다면

rm /var/lib/dpkg/lock 을 해줘야된다.

해당되는 lock종류를 지운뒤 upgradedpkg명령어를 지우도록하자

만약 이래도 안되면

rm /var/cache/apt/archives/lock

rm /var/lib/dpkg/lock*

해주고

dpkg --configure -a  한뒤 apt update

 

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

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

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

 

<== net-tools없을때 이거 source.list 넣고 update 해주자

 

 

------------------------------------------------------------------------------------------

부팅파일 오류 fstab

Give root password for maintenance (or type Control-D to continue):

<== 이 오류는 fstab을 잘못 수정해서 에러가 뜬 경우이다, 해당 파일을 마운트하지 못한것이니, 다시 설정해줘야된다. 

그러나 read-only mode 가 되어있어서 수정을 할수가 없는데, 이 상황을 벗어나기 위해, 다시 마운트해서 권한을 바꿔줘야된다.

mount -o remount,rw 로 파일권한을 read-write mode로 수정해준뒤에 /etc/fstab으로 들어가서 정확히 수정해준뒤에, reboot를 해주도록하자 

 

GPG키 오류

rpmts_hdrfromfdno header v3 rsa/sha256

<== 이 오류는 GPG키가 만료된것이다.

rpm --import /etc/pki/rpm-gpg/RPM* 해주자

 

------------------------------------------------------------------------------------------

쉘 오류

bash-4.1$

쉘이 이렇게 바뀌게 된다면 이 상황에서 발생하는 경우는 몇가지가 있다.

쉘이 지정이 안됬거나, 쉘 파일이 없는 경우,

즉 쉘을 지정해주거나, 쉘 파일을 다시 만들어주면 된다.

 

 

------------------------------------------------------------------------------------------

언어 설정 오류

cannot open file ko.ma

<== /etc/grub.comf  파일을 열어서 KEYTABLE 하고 LANG에 각각

KEYTABLE=en LANG=en_US.UTF-8으로 해주자

 

------------------------------------------------------------------------------------------

네트워크 오류

service network restart 를 했는데

Device not managed by NetworkManager or unavailable 이런 오류가 뜨고 갑자기 그냥 네트워크가 안될때

/etc/init.d/NetworkManager stop

NetworkManager를 중지시키고,

/etc/init.d/network restart

다시 network 서비스를 재시작해준뒤에

/etc/init.d/NetworkManager start

NetworkManager를 실행하도록하자

 

eth0 이 안나타나고 eth1만 나타날경우

<==  리눅스를 복사했을경우, 해당 네트워크 카드 주소가 달라서 eth0이 아닌 eth1이 자동생성되는 경우가 있다.

이걸 다시 원래 eth0으로 사용하고 싶을경우

nano /etc/udev/rules.d/70-persistent-net.rules 하고 위에서 확인한 MAC 주소를 가지고 있는 부분(대부분 제일 끝에 있다)을 찾아서 주석#이 있으면 지우고, 설정의 맨 끝에서 
SUBSYSTEM== ~ NAME=“eth1”을 ~ “eth0”식으로 바꿔주고, 다른 줄은 모두  
#SUBSYSTEM== ~ NAME=“eth0”식으로 줄 앞에 주석#을 붙여서 무시하고 저장한다.
그리고 ifconfig 쳐서 나오는 맥주소 ifcfg-eth0에다가 넣어준뒤에
ifconfig해서 ip가 잘 바뀐지 확인후 <- eth1으로 뜰것이다.
재시작을 해주자 <- eth1이 eth0으로 바뀔것이다.

 

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message

<== 이 에러는 apache2 server name이 지정되지 않아 생기는 오류이다.

echo "ServerName localhost" >> /etc/apache2/apache2.confgrep ServerName /etc/apache2/apache2.conf

<== 이렇게 해주고 <-- servernamelocalhost로 지정해줬음 <-- 그리고 확인한거임

service apache2 restart 해주면 에러가 뜨지 않는다.

 

------------------------------------------------------------------------------------------

SSL 오류

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!

Someone could be eavesdropping on you right now (man-in-the-middle attack)!

It is also possible that the RSA host key has just been changed.

The fingerprint for the RSA key sent by the remote host is

44:c3:c6:18:71:06:66:8c:72:d7:fb:47:be:c0:90:b0.

Please contact your system administrator.

Add correct host key in /root/.ssh/known_hosts to get rid of this message.

Offending key in /root/.ssh/known_hosts:2

RSA host key for 192.168.100.131 has changed and you have requested strict checking.

Host key verification failed.

이런 오류가 뜬다면 mitm 공격에 경고한다. 즉 기존에 서버가 알고있던 정보를 찾아서 따라갔더니 전혀 다른 서버로 접속했다는 의미이다.

ssh-keygen -R ip주소

를 입력해서

초기화를 시켜주자

만약 초기화 하지 않고, 단순히 경고를 무시하고 싶다면 -o "StrictHostKeyChecking no"

 

------------------------------------------------------------------------------------------

 

728x90
반응형