인터넷이 안되요 도와 주세요

[quote="james":39ptfqmb]우선 감사드립니다.
owner@ubuntu:~/Desktop/compat-wireless-2009-12-11$ ls /lib/modules/uname -r/build
/lib/modules/2.6.28-17-generic/build
버전을 확인해보니 2.6.28이어서 아래것을 다운받고 압축 해제 후 다음과 같이 실행을 하였는데요.
owner@ubuntu:~/Desktop/compat-wireless-2009-12-11$ ./scripts/driver-select intelProcessing new driver-select request…
Backing up makefile: Makefile.bk
Backing up makefile: drivers/net/wireless/Makefile.bk
Backing up makefile: drivers/net/Makefile.bk
Backing up makefile: drivers/ssb/Makefile.bk
Backing up makefile: drivers/net/usb/Makefile.bk
Backing up makefile: drivers/misc/eeprom/Makefile.bk
make를 하니 에러가 나네요…다음과 같이요…
owner@ubuntu:~/Desktop/compat-wireless-2009-12-11$ make
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
make -C /lib/modules/2.6.28-17-generic/build M=/home/owner/Desktop/compat-wireless-2009-12-11 modules
make: *** /lib/modules/2.6.28-17-generic/build: No such file or directory. Stop.
make: *** [modules] Error 2
무엇이 문제인지요? 도와 주세요ㅠ,ㅠ;[/quote:39ptfqmb]

제가 앞서 올려드린 글에 나와있듯이 현재 커널 버전에 맞는 헤더패키지가 없어서 그렇습니다.

다시한번 제가 올려드린글을 읽어보시고 컴파일에 필요한 환경을 먼저 맞춰주세요.

위 에러에 해당하는거 다시 인용해 드립니다.

[code:39ptfqmb]
아래 디렉토리 존재 여부 확인
$ ls /lib/modules/uname -r/build

없을 경우 (’ 싱글 쿼트가 아니라 백쿼트입니다 키보드 1왼쪽에 있는 키) $ apt-get install linux-headers-uname -r`
[/code:39ptfqmb]

우와…
정말 답답하네요.
owner@ubuntu:~/Desktop/compat-wireless-2009-12-11$ ls /lib/modules/uname -r/build
/lib/modules/2.6.28-17-generic/build
지금 상태는 없는것이죠?
owner@ubuntu:~/Desktop/compat-wireless-2009-12-11$ sudo apt-get install linux-headers-uname -r
Reading package lists… Done
Building dependency tree
Reading state information… Done
linux-headers-2.6.28-17-generic is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-2.6.28-11 linux-headers-2.6.28-11-generic libao2
Use ‘apt-get autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
그래서 위의 명령어 실행하니 아무것도 업데이트 된 것은 없는 듯 하고…
처음부터 다시 알려주신 대로 했는데…
make시에 에러가 나네요…
owner@ubuntu:~/Desktop/compat-wireless-2009-12-11$ make
make -C /lib/modules/2.6.28-17-generic/build M=/home/owner/Desktop/compat-wireless-2009-12-11 modules
make: *** /lib/modules/2.6.28-17-generic/build: No such file or directory. Stop.
make: *** [modules] Error 2
9.10 버전으로 업그레이드를 한번 해 볼까요?
그러면 알아서 잡아 주나요?

sudo apt-get update; sudo apt-get install build-essential linux-headers-uname -r
하신 뒤에

sudo ln -s /usr/src/linux-headers-uname -r /lib/modules/uname -r/build
sudo ln -s /usr/src/linux-headers-uname -r /lib/modules/uname -r/source

하세요.

답변 감사합니다.
알려주신 대로 업데이트 후 다음과 같이 실행을 하였는데… 오류는 그대로입니다.
제발 도와주세요.
owner@ubuntu:~$ sudo apt-get install build-essential linux-headers-uname -r
Reading package lists… Done
Building dependency tree
Reading state information… Done
build-essential is already the newest version.
linux-headers-2.6.28-17-generic is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-2.6.28-11 linux-headers-2.6.28-11-generic libao2
Use ‘apt-get autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

owner@ubuntu:~$ sudo ln -s /usr/src/linux-headers-uname -r /lib/modules/uname -r/build
ln: creating symbolic link `/lib/modules/2.6.28-17-generic/build’: File exists

owner@ubuntu:~$ sudo ln -s /usr/src/linux-headers-uname -r /lib/modules/uname -r/source

owner@ubuntu:~$ ls /lib/modules/uname -r/build
/lib/modules/2.6.28-17-generic/build
owner@ubuntu:~$ cd D*
owner@ubuntu:~/Desktop$ ls
compat-wireless-2009-12-11 compat-wireless-2.6.tar.bz2
owner@ubuntu:~/Desktop$ cd c*

owner@ubuntu:~/Desktop/compat-wireless-2009-12-11$ ./scripts/driver-select intelProcessing new driver-select request…
Backup exists: Makefile.bk
Backup exists: drivers/net/wireless/Makefile.bk
Backup exists: drivers/net/Makefile.bk
Backup exists: drivers/ssb/Makefile.bk
Backup exists: drivers/net/usb/Makefile.bk
Backup exists: drivers/misc/eeprom/Makefile.bk

owner@ubuntu:~/Desktop/compat-wireless-2009-12-11$ make
make -C /lib/modules/2.6.28-17-generic/build M=/home/owner/Desktop/compat-wireless-2009-12-11 modules
make: *** /lib/modules/2.6.28-17-generic/build: No such file or directory. Stop.
make: *** [modules] Error 2

[quote:psyfx21b]owner@ubuntu:~$ sudo ln -s /usr/src/linux-headers-uname -r /lib/modules/uname -r/build
ln: creating symbolic link `/lib/modules/2.6.28-17-generic/build’: File exists[/quote:psyfx21b]

위 File exists 에러에서 보듯이 이미 잘못된 심볼릭 링크가 되어 있기 때문에 에러가 반복되는 겁니다.
/lib/modules/uname -r/build 디렉토리를 삭제한뒤 링크를 다시걸어주세요.

sudo rm -rf /lib/modules/uname -r/build
sudo ln -s /usr/src/linux-headers-uname -r /lib/modules/uname -r/build

하세요.

리눅스를 처음 써보시는 것 같아 보입니다.
처음부터 다 잘하는 사람이 있겠습니까?

위 과정을 하신뒤에

/lib/modules/uname -r/build 와 /lib/modules/uname -r/source 디렉토리가
둘다 새로 설치한 커널 헤더 디렉토리(/usr/src/linux-headers-uname -r)를 가리키고 있어야 합니다.

ls -l /lib/modules/uname -r/build
ls -l /lib/modules/uname -r/source

하셔서 둘다 /usr/src/linux-headers-2.6.28-17-generic 를 가리키고 있는지 보신다음 다음 과정을 진행하세요.

감사합니다.
알려주신 대로 삭제하고 가리키는 파일이 둘다 /usr/src/linux-headers-2.6.28-17-generic이여서 다음과정(을 실행하니 동일한 오류가 나오는데요…
owner@ubuntu:~$ ls -l /lib/modules/uname -r/build
lrwxrwxrwx 1 root root 40 2010-01-11 17:38 /lib/modules/2.6.28-17-generic/build -> /usr/src/linux-headers-2.6.28-17-generic
owner@ubuntu:~$ ls -l /lib/modules/uname -r/source
lrwxrwxrwx 1 root root 40 2010-01-11 09:12 /lib/modules/2.6.28-17-generic/source -> /usr/src/linux-headers-2.6.28-17-generic

owner@ubuntu:~/Desktop/compat-wireless-2009-12-11$ ./scripts/driver-select intelProcessing new driver-select request…
Backup exists: Makefile.bk
Backup exists: drivers/net/wireless/Makefile.bk
Backup exists: drivers/net/Makefile.bk
Backup exists: drivers/ssb/Makefile.bk
Backup exists: drivers/net/usb/Makefile.bk
Backup exists: drivers/misc/eeprom/Makefile.bk
owner@ubuntu:~/Desktop/compat-wireless-2009-12-11$ make
make -C /lib/modules/2.6.28-17-generic/build M=/home/owner/Desktop/compat-wireless-2009-12-11 modules
make: *** /lib/modules/2.6.28-17-generic/build: No such file or directory. Stop.
make: *** [modules] Error 2

정말 왜 이런거죠???
제발 절 포기하지 말아 주세요. ㅜ.ㅜ
이제 다시 까는 것 보다 오기가 생겨서래도 반드시 고쳐야 겠네요…

sudo rm -rf /lib/modules/uname -r/build /lib/modules/uname -r/source
sudo apt-get install linux-headers-uname -r --reinstall

해서 새로 설치하시고

sudo rm -rf ~/Desktop/compat-wireless-2009-12-11

하신후 다시 받아 압축푸세요.

다음과정 진행하지 마시고

ls -al /usr/src/linux-headers-uname -r
ls -l /lib/modules/uname -r/build
ls -l /lib/modules/uname -r/source
의 내용을 보여주세요.

알려주신 대로 삭제 후 실행했습니다. 그런데…
owner@ubuntu:~/Desktop$ ls -al /usr/src/linux-headers-uname -r
total 652
drwxr-xr-x 7 root root 4096 2010-01-12 15:58 .
drwxrwsr-x 5 root src 4096 2010-01-12 15:58 …
drwxr-xr-x 3 root root 4096 2010-01-12 15:58 arch
lrwxrwxrwx 1 root root 32 2010-01-12 15:58 block -> …/linux-headers-2.6.28-17/block
-rw-r–r-- 1 root root 96877 2009-12-01 15:07 .config
lrwxrwxrwx 1 root root 33 2010-01-12 15:58 crypto -> …/linux-headers-2.6.28-17/crypto
lrwxrwxrwx 1 root root 40 2010-01-12 15:58 Documentation -> …/linux-headers-2.6.28-17/Documentation
lrwxrwxrwx 1 root root 34 2010-01-12 15:58 drivers -> …/linux-headers-2.6.28-17/drivers
lrwxrwxrwx 1 root root 35 2010-01-12 15:58 firmware -> …/linux-headers-2.6.28-17/firmware
lrwxrwxrwx 1 root root 29 2010-01-12 15:58 fs -> …/linux-headers-2.6.28-17/fs
drwxr-xr-x 5 root root 4096 2010-01-12 15:58 include
lrwxrwxrwx 1 root root 31 2010-01-12 15:58 init -> …/linux-headers-2.6.28-17/init
lrwxrwxrwx 1 root root 30 2010-01-12 15:58 ipc -> …/linux-headers-2.6.28-17/ipc
lrwxrwxrwx 1 root root 33 2010-01-12 15:58 Kbuild -> …/linux-headers-2.6.28-17/Kbuild
drwxr-xr-x 2 root root 4096 2010-01-12 15:58 kernel
lrwxrwxrwx 1 root root 30 2010-01-12 15:58 lib -> …/linux-headers-2.6.28-17/lib
lrwxrwxrwx 1 root root 35 2010-01-12 15:58 Makefile -> …/linux-headers-2.6.28-17/Makefile
-rw-r–r-- 1 root root 276 2009-12-01 15:07 .missing-syscalls.d
lrwxrwxrwx 1 root root 29 2010-01-12 15:58 mm -> …/linux-headers-2.6.28-17/mm
-rw-r–r-- 1 root root 528372 2009-12-01 15:08 Module.symvers
lrwxrwxrwx 1 root root 30 2010-01-12 15:58 net -> …/linux-headers-2.6.28-17/net
lrwxrwxrwx 1 root root 34 2010-01-12 15:58 samples -> …/linux-headers-2.6.28-17/samples
drwxr-xr-x 7 root root 4096 2010-01-12 15:58 scripts
lrwxrwxrwx 1 root root 35 2010-01-12 15:58 security -> …/linux-headers-2.6.28-17/security
lrwxrwxrwx 1 root root 32 2010-01-12 15:58 sound -> …/linux-headers-2.6.28-17/sound
drwxr-xr-x 2 root root 4096 2009-12-01 15:07 .tmp_versions
lrwxrwxrwx 1 root root 33 2010-01-12 15:58 ubuntu -> …/linux-headers-2.6.28-17/ubuntu
lrwxrwxrwx 1 root root 30 2010-01-12 15:58 usr -> …/linux-headers-2.6.28-17/usr
owner@ubuntu:~/Desktop$
owner@ubuntu:~/Desktop$ ls -l /lib/modules/uname -r/build
lrwxrwxrwx 1 root root 40 2010-01-12 15:58 /lib/modules/2.6.28-17-generic/build -> /usr/src/linux-headers-2.6.28-17-generic
아래 결과는 또 왜 이런 거죠???
owner@ubuntu:~/Desktop$ ls -l /lib/modules/uname -r/source
ls: cannot access /lib/modules/2.6.28-17-generic/source: No such file or directory

일단은 /lib/modules/uname -r/source 디랙토리는 만들지 마시고

새로 받아 압축푼 디렉토리( ~/Desktop/compat-wireless-2009-12-11)로
가서 컴파일 진행하신뒤 결과를 알려주세요.

./scripts/driver-select intel
make

ls 관련해서는 만들지 않고…
make한 결과입니다.
owner@ubuntu:~$ cd D*
owner@ubuntu:~/Desktop$ cd c*
owner@ubuntu:~/Desktop/compat-wireless-2009-12-11$ ./scripts/driver-select intelProcessing new driver-select request…
Backing up makefile: Makefile.bk
Backing up makefile: drivers/net/wireless/Makefile.bk
Backing up makefile: drivers/net/Makefile.bk
Backing up makefile: drivers/ssb/Makefile.bk
Backing up makefile: drivers/net/usb/Makefile.bk
Backing up makefile: drivers/misc/eeprom/Makefile.bk
owner@ubuntu:~/Desktop/compat-wireless-2009-12-11$ make
make: Makefile: No such file or directory
make: *** No rule to make target Makefile'. Stop. [: 1: -gt: argument expected test: 1: -ge: unexpected operator ./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h make -C /lib/modules/2.6.28-17-generic/build M=/home/owner/Desktop/compat-wireless-2009-12-11 modules make[1]: Entering directory /usr/src/linux-headers-2.6.28-17-generic’
make[1]: Makefile: No such file or directory
make[1]: *** No rule to make target Makefile'. Stop. make[1]: Leaving directory /usr/src/linux-headers-2.6.28-17-generic’
make: *** [modules] Error 2

먼저 Makefile이 있는지 확인하시고

ls -al /usr/src/linux-headers-2.6.28-17/Makefile

cd ~/Desktop/
sudo rm -rf compat-wireless-2009-12-11
wget [url:1weyf9ki]http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2009-12-11.tar.bz2[/url:1weyf9ki]
tar jxvf compat-wireless-2009-12-11.tar.bz2
cd compat-wireless-2009-12-1
./scripts/driver-select intel
make

하세요.

Makefile이 없는 것으로 나오는데요…
owner@ubuntu:~$ ls -al /usr/src/linux-headers-2.6.28-17/Makefile
ls: cannot access /usr/src/linux-headers-2.6.28-17/Makefile: No such file or directory

sudo apt-get install linux-headers-2.6.28-17 --reinstall

하세요 아래에서 보시는 대로 /usr/src/linux-headers-2.6.28-17-generic 안의 거의 모든 파일 디렉토리가
/usr/src/linux-headers-2.6.28-17 의 심볼릭 링크입니다.

따라서 linux-headers-2.6.28-17 패키지가 설치되어야 겠죠.

[quote:av8so83y]owner@ubuntu:~/Desktop$ ls -al /usr/src/linux-headers-uname -r
total 652
drwxr-xr-x 7 root root 4096 2010-01-12 15:58 .
drwxrwsr-x 5 root src 4096 2010-01-12 15:58 …
drwxr-xr-x 3 root root 4096 2010-01-12 15:58 arch
lrwxrwxrwx 1 root root 32 2010-01-12 15:58 block -> …/linux-headers-2.6.28-17/block
-rw-r–r-- 1 root root 96877 2009-12-01 15:07 .config
lrwxrwxrwx 1 root root 33 2010-01-12 15:58 crypto -> …/linux-headers-2.6.28-17/crypto
lrwxrwxrwx 1 root root 40 2010-01-12 15:58 Documentation -> …/linux-headers-2.6.28-17/Documentation
lrwxrwxrwx 1 root root 34 2010-01-12 15:58 drivers -> …/linux-headers-2.6.28-17/drivers
lrwxrwxrwx 1 root root 35 2010-01-12 15:58 firmware -> …/linux-headers-2.6.28-17/firmware
lrwxrwxrwx 1 root root 29 2010-01-12 15:58 fs -> …/linux-headers-2.6.28-17/fs
drwxr-xr-x 5 root root 4096 2010-01-12 15:58 include
lrwxrwxrwx 1 root root 31 2010-01-12 15:58 init -> …/linux-headers-2.6.28-17/init
lrwxrwxrwx 1 root root 30 2010-01-12 15:58 ipc -> …/linux-headers-2.6.28-17/ipc
lrwxrwxrwx 1 root root 33 2010-01-12 15:58 Kbuild -> …/linux-headers-2.6.28-17/Kbuild
drwxr-xr-x 2 root root 4096 2010-01-12 15:58 kernel
lrwxrwxrwx 1 root root 30 2010-01-12 15:58 lib -> …/linux-headers-2.6.28-17/lib
lrwxrwxrwx 1 root root 35 2010-01-12 15:58 Makefile -> …/linux-headers-2.6.28-17/Makefile
-rw-r–r-- 1 root root 276 2009-12-01 15:07 .missing-syscalls.d
lrwxrwxrwx 1 root root 29 2010-01-12 15:58 mm -> …/linux-headers-2.6.28-17/mm
-rw-r–r-- 1 root root 528372 2009-12-01 15:08 Module.symvers
lrwxrwxrwx 1 root root 30 2010-01-12 15:58 net -> …/linux-headers-2.6.28-17/net
lrwxrwxrwx 1 root root 34 2010-01-12 15:58 samples -> …/linux-headers-2.6.28-17/samples
drwxr-xr-x 7 root root 4096 2010-01-12 15:58 scripts
lrwxrwxrwx 1 root root 35 2010-01-12 15:58 security -> …/linux-headers-2.6.28-17/security
lrwxrwxrwx 1 root root 32 2010-01-12 15:58 sound -> …/linux-headers-2.6.28-17/sound
drwxr-xr-x 2 root root 4096 2009-12-01 15:07 .tmp_versions
lrwxrwxrwx 1 root root 33 2010-01-12 15:58 ubuntu -> …/linux-headers-2.6.28-17/ubuntu
lrwxrwxrwx 1 root root 30 2010-01-12 15:58 usr -> …/linux-headers-2.6.28-17/usr[/quote:av8so83y]

정말 감사드립니다.
9.10으로 업데이트를 하였는데요.
무선이 자동으로 잡히네요…
무슨 완전 삽질한 것도 아니고…
이것때문에 신경쓴 것 생각하면 정말 …
아무튼 정말 감사드립니다.
항상 즐거운 일만 가득하길 바랄게요.
좋은 하루 되세요.