Autor Tópico: problema para instalar kernel (headers - sources)- Ubuntu server + asterisk  (Lida 5219 vezes)

Offline mjost

  • Usuário Ubuntu
  • *
  • Mensagens: 4
    • Ver perfil
Baixei a iso do Ubuntu 6.06.1 server, instalei pela opcao instalar server LAMP e estou tentando instalar o Asterisk, usando esse tutorial:
http://www.asteriskbrasil.org/tiki/tiki-index.php?page=Instalando+o+Asterisk+no+Debian

Estou com problemas, pois da erro ao tentar instalar os kernel-headers:

root@srv:/usr/src# uname -r
2.6.15-26-server
root@srv:/usr/src# export KVERS=$(uname -r)
root@srv:/usr/src# export KSRC=/usr/src/kernel-headers-$KVERS
root@srv:/usr/src# apt-get install asterisk asterisk-config mpg123 build-essential \
> asterisk-doc asterisk-sounds-main libiax0 zaptel zaptel-source \
> dpatch kernel-package libpri1 kernel-headers-$KVERS zip unzip bzip2
Reading package lists... Done
Building dependency tree... Done
Note, selecting mpg321 instead of mpg123
mpg321 is already the newest version.
E: Couldn't find package kernel-headers-2.6.15-26-server

Meu sources.list:
Código: [Selecionar]


deb cdrom:[Ubuntu-Server 6.06.1 _Dapper Drake_ - Release i386 (20060807.1)]/ dapper main restricted

deb http://br.archive.ubuntu.com/ubuntu/ dapper main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ dapper main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ dapper-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://br.archive.ubuntu.com/ubuntu/ dapper universe
deb-src http://br.archive.ubuntu.com/ubuntu/ dapper universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://br.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse


deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://security.ubuntu.com/ubuntu dapper-security universe
deb-src http://security.ubuntu.com/ubuntu dapper-security universe
« Última modificação: 21 de Setembro de 2006, 17:48 por mjost »

Offline Xterminator

  • Usuário Ubuntu
  • *
  • Mensagens: 1.279
    • Ver perfil
Re: Kernel Headers
« Resposta #1 Online: 21 de Setembro de 2006, 16:10 »
é simples amigo, no ubuntu o nome é linux-headers ou linux-kernel-headers não lembro agora faça uma busca no gerenciador de pacotes e verifique o nome correto, desculpe não ser mais preciso na resposta pois não tenho acesso ao meu ubuntu no momento.
« Última modificação: 21 de Setembro de 2006, 16:17 por Xterminator »

Offline mjost

  • Usuário Ubuntu
  • *
  • Mensagens: 4
    • Ver perfil
Re: Kernel Headers
« Resposta #2 Online: 21 de Setembro de 2006, 16:19 »
é simples amigo, no ubuntu o nome é linux-headers ou linux-kernel-headers não lembro agora faça uma busca no gerenciador de pacotes e verifique o nome correto, desculpe não ser mais preciso na resposta pois não tenho acesso ao meu ubuntu no momento.
Ave cristus...  :o
Nunca ia imaginar que era isso.
Valeu  :)

Offline mjost

  • Usuário Ubuntu
  • *
  • Mensagens: 4
    • Ver perfil
Re: problema para instalar kernel-headers - Ubuntu server + asterisk
« Resposta #3 Online: 21 de Setembro de 2006, 17:47 »
Bom , agora o problema ta com o sources
root@srv:/usr/src/zaptel-1.2# apt-get install linux-source-`uname -r`
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package linux-source-2.6.15-26-server
Mas o linux-source-2.6.15 consigo, pode ser usado este?

Offline Xterminator

  • Usuário Ubuntu
  • *
  • Mensagens: 1.279
    • Ver perfil
Re: problema para instalar kernel (headers - sources)- Ubuntu server + asterisk
« Resposta #4 Online: 21 de Setembro de 2006, 20:19 »
creio que sim, pois o source é o mesmo, não existe um source para sua versão "server" isto é o source genérico que é usado para a compilação de todas variantes 386,686,k7 etc...
em caso de dúvidas use por sua conta e risco.

Offline mjost

  • Usuário Ubuntu
  • *
  • Mensagens: 4
    • Ver perfil
Re: problema para instalar kernel (headers - sources)- Ubuntu server + asterisk
« Resposta #5 Online: 21 de Setembro de 2006, 20:41 »
Bom, tentei mas nao deu ...... como o sistema referencia ao "2.6.15-26-server" ele nao aceitou os sources do 2.6.15
Código: [Selecionar]
cc -o fxotune fxotune.o -lm
/usr/src/kernel-headers-2.6.15-26-server
You do not appear to have the sources for the 2.6.15-26-server kernel installed.
make: *** [linux26] Error 1

Offline forumpec

  • Usuário Ubuntu
  • *
  • Mensagens: 1
    • Ver perfil
Re: problema para instalar kernel (headers - sources)- Ubuntu server + asterisk
« Resposta #6 Online: 05 de Setembro de 2008, 16:21 »
Caros amigo:

Estou com o mesmo problema, estou usando a distro debian, alguem poderia ajudar, agradeço a atenção de todos.