Dev record/Ubuntu
-
문제 상황 Docker 환경에서 GUI 프로그램을 사용할 때 발생하는 오류코드 (gedit:218): Gtk-WARNING **: 17:14:16.768: cannot open display: :0 해결 방안 # docker 빠져나와서 xhost +local:docker docker start docker exec -it /bin/bash Test for gedit
Docker GUI 안되는 경우 (gedit:218): Gtk-WARNING **: 17:14:16.768: cannot open display: :0문제 상황 Docker 환경에서 GUI 프로그램을 사용할 때 발생하는 오류코드 (gedit:218): Gtk-WARNING **: 17:14:16.768: cannot open display: :0 해결 방안 # docker 빠져나와서 xhost +local:docker docker start docker exec -it /bin/bash Test for gedit
2023.01.09 -
문제 상황 ssh, scp 등으로 원격 접속을 할 경우 Public IP가 필요한데 ifconfig로는 내가 사용하고 있는 IP의 public 주소를 확인할 수 없다. 만약 ifconfig로 ip를 확인하면 다음과 같이 내부 주소만 나온다. 해결 방법 다음과 같은 명령어를 사용하면 public ip를 확인할 수 있다. curl ifconfig.me
Public IP 확인 방법문제 상황 ssh, scp 등으로 원격 접속을 할 경우 Public IP가 필요한데 ifconfig로는 내가 사용하고 있는 IP의 public 주소를 확인할 수 없다. 만약 ifconfig로 ip를 확인하면 다음과 같이 내부 주소만 나온다. 해결 방법 다음과 같은 명령어를 사용하면 public ip를 확인할 수 있다. curl ifconfig.me
2023.01.05 -
문제상황 이리저리 apt-get update를 잘 하다가 어느 순간 제대로 repo를 못가져 오는 경우가 발생하였다. 그로 인해 apt-get update가 안되는 상황에서 해결 방안이다. 해결 방안 source.list 수정해서 문제를 해결했다. cd /etc/apt sudo gedit source.list source.list를 아래와 같이 수정 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted # deb-src http://us.archi..
apt-get update 안될 경우문제상황 이리저리 apt-get update를 잘 하다가 어느 순간 제대로 repo를 못가져 오는 경우가 발생하였다. 그로 인해 apt-get update가 안되는 상황에서 해결 방안이다. 해결 방안 source.list 수정해서 문제를 해결했다. cd /etc/apt sudo gedit source.list source.list를 아래와 같이 수정 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted # deb-src http://us.archi..
2023.01.05 -
문제 상황 W: Target Packages (main/binary-amd64/Packages) is configured multiple times apt-get update를 하는데 위와같은 warning 경고 메세지가 나온다. 해결 방안 sudo rm /etc/apt/sources.list sudo software-properties-gtk sources.list를 제거 한다. 그 다음 software 삭제를 위해 software & updates로 진입한다. 해당 경우는 VSCode를 설치하다가 발생한 문제로 해당 volume을 삭제한다. Remove를 클릭 그러면 해당 volume이 제거되고 close를 클릭한다. 다시 apt-get update를 시도하면 해당 warning이 제거된다.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times문제 상황 W: Target Packages (main/binary-amd64/Packages) is configured multiple times apt-get update를 하는데 위와같은 warning 경고 메세지가 나온다. 해결 방안 sudo rm /etc/apt/sources.list sudo software-properties-gtk sources.list를 제거 한다. 그 다음 software 삭제를 위해 software & updates로 진입한다. 해당 경우는 VSCode를 설치하다가 발생한 문제로 해당 volume을 삭제한다. Remove를 클릭 그러면 해당 volume이 제거되고 close를 클릭한다. 다시 apt-get update를 시도하면 해당 warning이 제거된다.
2023.01.05 -
문제 상황 Could not resolve 'kr.archive.ubuntu.com' apt-get update 등을 하는데 위와 같은 에러 코드가 발생하는 경우 해결 방안 sudo gedit /etc/resolv.conf nameserver를 위와 같이 8.8.8.8 로 변경한다.
Could not resolve 'kr.archive.ubuntu.com'문제 상황 Could not resolve 'kr.archive.ubuntu.com' apt-get update 등을 하는데 위와 같은 에러 코드가 발생하는 경우 해결 방안 sudo gedit /etc/resolv.conf nameserver를 위와 같이 8.8.8.8 로 변경한다.
2023.01.05 -
문제상황 Package python-pip is not available, but is referred to by another package. 해결 방안 curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py python get-pip.py reference https://stackoverflow.com/questions/64187581/e-package-python-pip-has-no-installation-candidate
Package python-pip is not available, but is referred to by another package.문제상황 Package python-pip is not available, but is referred to by another package. 해결 방안 curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py python get-pip.py reference https://stackoverflow.com/questions/64187581/e-package-python-pip-has-no-installation-candidate
2023.01.05