레이블이 문제해결인 게시물을 표시합니다. 모든 게시물 표시
레이블이 문제해결인 게시물을 표시합니다. 모든 게시물 표시

2015년 8월 5일 수요일

Ubuntu - could not write bytes : broken pipe

could not write bytes : broken pipe


이 에러 문구가 화면에 보이고 더이상 진행하지 않을 때면 늘 xorg 나 비디오 카드 드라이버 문제였다.

보통 xorg 나 ubuntu-desktop, gnome-session 등등 재설치 후 로그인 화면까지 진입했다.
진입 후 주로 그래픽이 깨지는 증상이 발생 했으며 이때는 자신의 그래픽 카드와 맞는 드라이버를 설치해야 했다. (참고 : "nVidia GT218 드라이버 설치" 항목)

아래 내용들은 문제 해결하면서 검색해 본 내용들

xorg 재설치

http://ubuntuforums.org/showthread.php?t=1150319

$ sudo apt-get remove xserver-xorg
$ sudo apt-get remove --purge xserver-xorg
$ sudo apt-get install xserver-xorg


xorg 재시작

http://askubuntu.com/questions/1220/how-can-i-restart-x-server-from-the-command-line

$ sudo restart lightdm

xorg reconfigure

http://askubuntu.com/questions/283985/unable-to-load-session-ubuntu-in-12-04

$ sudo dpkg-reconfigure lightdm

failed to load session "ubuntu"

https://riveridea.wordpress.com/2012/03/22/how-to-solve-failed-to-load-session-ubuntu/

방법 1)
$ sudo apt-get update
$ sudo apt-get install ubuntu-desktop
$ sudo apt-get -f install
$ sudo dpkg-reconfigure ubuntu-desktop
$ sudo reboot


방법 2)
$ sudo apt-get install gnome-session
$ sudo apt-get install lightdm
$ sudo apt-get install unity-greeter
$ sudo dpkg-reconfigure lightdm


errors were encountered while processing cups 문제

http://ubuntuforums.org/showthread.php?t=1864254

$ sudo apt-get purge cups && sudo apt-get autoremove
$ sudo apt-get update && sudo apt-get install cups


errors were encountered while processing cups printer-driver-gutenprint

Ubuntu video driver 확인 방법

http://askubuntu.com/questions/23238/how-can-i-find-what-video-driver-is-in-use-on-my-system

$ lshw -c video
configureation: driver 값 기억
$ modinfo <기억한 값>

nVidia GT218 드라이버 설치

http://ubuntuforums.org/showthread.php?t=2223757

방법 1)
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get upgrade

방법 2) 난 이게 되었다
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get upgrade

add-apt-repository remove 방법

http://askubuntu.com/questions/307/how-can-ppas-be-removed

$ add-apt-repository --remove <ppa 이름>

alternative way (이 방법 추천)

$ sudo apt-get install ppa-purge
$ sudo ppa-purge ppa_name
$ sudo apt-get purge package_name



2014년 7월 9일 수요일

System program problem detected 경고창 제거

참고: http://askubuntu.com/questions/133385/getting-system-program-problem-detected-pops-up-regularly-after-upgrade

증상: Ubuntu distribution 업데이트 하고 나서 Ubuntu 시작 하자 마자 System program problem detected 경고창이 뜬다.

해결: 위 참고 사이트를 참고하여 아래와 같이 /var/crash/ 안의 파일들을 삭제 해 주니 경고창이 뜨지 않았다.

$ sudo rm /var/crash/*

2013년 11월 28일 목요일

svn: XML data was not well-formed

svn 으로 checkout 중 아래와 같은 에러가 발생함.
svn: XML data was not well-formed

참고: http://linuxproblem.org/art_22.html
위 링크를 보면 이유가 svn 프로그램이 자동으로 로컬 컴퓨터에 생성하는 .svn 폴더 아래 파일이 문제가 생긴 경우 일 수 있다고 한다.

하지만 .svn 파일이 아예 생기지 않았다.
결국, 관리자 권한 취득 문제 였다.
관리자 권한에 대한 해결 방법은 여러가지가 있다.

sudo 명령으로 재시도 해보길 권장

!) 사실 mac os 사용중 문제 발견하였으나 linux 도 비슷한 원인일 거라 추측함.
 - mac os 에서는 설정 -> 사용자 및 그룹 에서 현재 사용자에 "사용자를 이 컴퓨터의 관리자로 허용" 옵션을 활성화하고 sudo 명령어로 재시도 시 가능 했다.

2012년 2월 27일 월요일

Ubuntu kr.archive.ubuntu.com 접속 실패시

참고: http://tosiri.blogspot.com/2012/02/krarchiveubuntucom.html

kr.archive.ubuntu.com 서버는 자주 연결 실패하는 경향이 있다.
ftp.daum.net 서버를 이용하는 편이 더 낫다.

/etc/apt/source.list 파일에 kr.archive.ubuntu.com 을 ftp.daum.net 으로 변경한다.
 - security.ubuntu.com 도 ftp.daum.net 으로 변경해도 된다.

변경 후 $ sudo apt-get update 명령 수행해야 반영 된다.

2011년 7월 16일 토요일

$'\r': command not found


cygwin에서 shell script 실행 중 다음과 같은 오류 메시지가 출력된다.

\r': command not found

dos2unix 프로그램을 사용하는 방법이 제일 편한거 같다.
$ dos2unix