커널을 컴파일하려고 합니다. 소스코드를 다운받았습니다. "make menucionfig"를 시도하면. 나는 다음과 같은 결과를 얻습니다.
* Unable to find the ncurses libraries or the
* required header files.
* 'make menuconfig' requires the ncurses libraries.
* * Install ncurses (ncurses-devel) and try again.
* make[1]: *** [scripts/kconfig/dochecklxdialog]
Error 1 make: *** [menuconfig] Error 2`
따라서 다음 명령을 시도했습니다.
sudo apt-get install libncurses5-dev
sudo apt-get install ncurses-dev
sudo apt-get install ncurses-devel
산출:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package <package_name>
소스.목록:
# deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427.1)]/ natty main restricted
deb-src http://archive.linux.duke.edu/ubuntu/ natty main restricted #Added by software-properties
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.linux.duke.edu/ubuntu/ natty main restricted
deb-src http://archive.linux.duke.edu/ubuntu/ natty main multiverse universe #Added by software-properties
## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.linux.duke.edu/ubuntu/ natty-updates main restricted
deb-src http://archive.linux.duke.edu/ubuntu/ natty-updates restricted main multiverse universe #Added by software-properties
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.linux.duke.edu/ubuntu/ natty universe
deb http://archive.linux.duke.edu/ubuntu/ natty-updates universe
## 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
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.linux.duke.edu/ubuntu/ natty multiverse
deb http://archive.linux.duke.edu/ubuntu/ natty-updates multiverse
## 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://in.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
deb http://archive.linux.duke.edu/ubuntu/ natty-security main restricted
deb-src http://archive.linux.duke.edu/ubuntu/ natty-security restricted main multiverse universe #Added by software-properties
deb http://archive.linux.duke.edu/ubuntu/ natty-security universe
deb http://archive.linux.duke.edu/ubuntu/ natty-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu natty partner
deb-src http://archive.canonical.com/ubuntu natty partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu natty main
deb-src http://extras.ubuntu.com/ubuntu natty main
적절한 업데이트 받기 결과:
Ign http://archive.linux.duke.edu natty InRelease
Ign http://archive.linux.duke.edu natty-updates InRelease
Ign http://archive.linux.duke.edu natty-security InRelease
Ign http://archive.linux.duke.edu natty Release.gpg
Ign http://archive.linux.duke.edu natty-updates Release.gpg
Ign http://extras.ubuntu.com natty InRelease
Ign http://archive.canonical.com natty InRelease
Ign http://extras.ubuntu.com natty Release.gpg
Hit http://archive.canonical.com natty Release.gpg
Ign http://extras.ubuntu.com natty Release
Hit http://archive.canonical.com natty Release
Ign http://archive.linux.duke.edu natty-security Release.gpg
Ign http://extras.ubuntu.com natty/main Sources/DiffIndex
Hit http://archive.canonical.com natty/partner Sources
Ign http://extras.ubuntu.com natty/main i386 Packages/DiffIndex
Ign http://extras.ubuntu.com natty/main TranslationIndex
Ign http://archive.linux.duke.edu natty Release
Hit http://archive.canonical.com natty/partner i386 Packages
Ign http://archive.canonical.com natty/partner TranslationIndex
Ign http://archive.linux.duke.edu natty-updates Release
Ign http://archive.linux.duke.edu natty-security Release
Ign http://archive.linux.duke.edu natty/main TranslationIndex
Ign http://archive.linux.duke.edu natty/multiverse TranslationIndex
Ign http://archive.linux.duke.edu natty/restricted TranslationIndex
Ign http://archive.linux.duke.edu natty/universe TranslationIndex
Ign http://archive.linux.duke.edu natty-updates/main TranslationIndex
Ign http://archive.linux.duke.edu natty-updates/multiverse TranslationIndex
Ign http://archive.linux.duke.edu natty-updates/restricted TranslationIndex
Ign http://archive.canonical.com natty/partner Translation-en_IN
Ign http://archive.linux.duke.edu natty-updates/universe TranslationIndex
Ign http://archive.canonical.com natty/partner Translation-en
Ign http://archive.linux.duke.edu natty-security/main TranslationIndex
Err http://extras.ubuntu.com natty/main Sources
404 Not Found
Ign http://archive.linux.duke.edu natty-security/multiverse TranslationIndex
Ign http://archive.linux.duke.edu natty-security/restricted TranslationIndex
Ign http://archive.linux.duke.edu natty-security/universe TranslationIndex
Err http://extras.ubuntu.com natty/main i386 Packages
404 Not Found
Ign http://extras.ubuntu.com natty/main Translation-en_IN
Ign http://extras.ubuntu.com natty/main Translation-en
Err http://archive.linux.duke.edu natty/main Sources
404 Not Found
Err http://archive.linux.duke.edu natty/restricted Sources
404 Not Found
Err http://archive.linux.duke.edu natty/multiverse Sources
404 Not Found
Err http://archive.linux.duke.edu natty/universe Sources
404 Not Found
Err http://archive.linux.duke.edu natty/main i386 Packages
404 Not Found
Err http://archive.linux.duke.edu natty/restricted i386 Packages
404 Not Found
Err http://archive.linux.duke.edu natty/universe i386 Packages
404 Not Found
Err http://archive.linux.duke.edu natty/multiverse i386 Packages
404 Not Found
Err http://archive.linux.duke.edu natty-updates/restricted Sources
404 Not Found
Err http://archive.linux.duke.edu natty-updates/main Sources
404 Not Found
Err http://archive.linux.duke.edu natty-updates/multiverse Sources
404 Not Found
Err http://archive.linux.duke.edu natty-updates/universe Sources
404 Not Found
Err http://archive.linux.duke.edu natty-updates/main i386 Packages
404 Not Found
Err http://archive.linux.duke.edu natty-updates/restricted i386 Packages
404 Not Found
Err http://archive.linux.duke.edu natty-updates/universe i386 Packages
404 Not Found
Err http://archive.linux.duke.edu natty-updates/multiverse i386 Packages
404 Not Found
Err http://archive.linux.duke.edu natty-security/restricted Sources
404 Not Found
Err http://archive.linux.duke.edu natty-security/main Sources
404 Not Found
Err http://archive.linux.duke.edu natty-security/multiverse Sources
404 Not Found
Err http://archive.linux.duke.edu natty-security/universe Sources
404 Not Found
Err http://archive.linux.duke.edu natty-security/main i386 Packages
404 Not Found
Err http://archive.linux.duke.edu natty-security/restricted i386 Packages
404 Not Found
Err http://archive.linux.duke.edu natty-security/universe i386 Packages
404 Not Found
Err http://archive.linux.duke.edu natty-security/multiverse i386 Packages
404 Not Found
Ign http://archive.linux.duke.edu natty/main Translation-en_IN
Ign http://archive.linux.duke.edu natty/main Translation-en
Ign http://archive.linux.duke.edu natty/multiverse Translation-en_IN
Ign http://archive.linux.duke.edu natty/multiverse Translation-en
Ign http://archive.linux.duke.edu natty/restricted Translation-en_IN
Ign http://archive.linux.duke.edu natty/restricted Translation-en
Ign http://archive.linux.duke.edu natty/universe Translation-en_IN
Ign http://archive.linux.duke.edu natty/universe Translation-en
Ign http://archive.linux.duke.edu natty-updates/main Translation-en_IN
Ign http://archive.linux.duke.edu natty-updates/main Translation-en
Ign http://archive.linux.duke.edu natty-updates/multiverse Translation-en_IN
Ign http://archive.linux.duke.edu natty-updates/multiverse Translation-en
Ign http://archive.linux.duke.edu natty-updates/restricted Translation-en_IN
Ign http://archive.linux.duke.edu natty-updates/restricted Translation-en
Ign http://archive.linux.duke.edu natty-updates/universe Translation-en_IN
Ign http://archive.linux.duke.edu natty-updates/universe Translation-en
Ign http://archive.linux.duke.edu natty-security/main Translation-en_IN
Ign http://archive.linux.duke.edu natty-security/main Translation-en
Ign http://archive.linux.duke.edu natty-security/multiverse Translation-en_IN
Ign http://archive.linux.duke.edu natty-security/multiverse Translation-en
Ign http://archive.linux.duke.edu natty-security/restricted Translation-en_IN
Ign http://archive.linux.duke.edu natty-security/restricted Translation-en
Ign http://archive.linux.duke.edu natty-security/universe Translation-en_IN
Ign http://archive.linux.duke.edu natty-security/universe Translation-en
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/main/source/Sources 404 Not Found
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty/main/source/Sources 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty/restricted/source/Sources 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty/multiverse/source/Sources 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty/universe/source/Sources 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty/restricted/binary-i386/Packages 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty/universe/binary-i386/Packages 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty/multiverse/binary-i386/Packages 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty-updates/restricted/source/Sources 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty-updates/main/source/Sources 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty-updates/multiverse/source/Sources 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty-updates/universe/source/Sources 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty-updates/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty-updates/restricted/binary-i386/Packages 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty-updates/universe/binary-i386/Packages 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty-updates/multiverse/binary-i386/Packages 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty-security/restricted/source/Sources 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty-security/main/source/Sources 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty-security/multiverse/source/Sources 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty-security/universe/source/Sources 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty-security/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty-security/restricted/binary-i386/Packages 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty-security/universe/binary-i386/Packages 404 Not Found
W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/natty-security/multiverse/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
나는 Google에서 많은 제안을 시도했습니다. 도와주세요.
답변1
Natty Narwhal의 "이전 버전" 아카이브를 사용해야 합니다. 파일에서 이를 대체한 archive.linux.duke.edu
다음 실행하면 패키지를 설치할 수 있습니다.old-releases.ubuntu.com
sources.list
sudo apt-get update
~처럼호이겐스그러나 지원되는 Ubuntu 버전으로 업그레이드하는 것이 좋습니다.
답변2
Natty Narwhal은 우분투에서 더 이상 지원되지 않습니다. 따라서 이를 사용하여 ncurses를 설치할 수 없습니다 apt-get
.
다음과 같은 옵션이 있습니다.
- Ununtu에서 지원하는 버전으로 업그레이드. 하지만 귀하의 버전이 더 이상 지원되지 않으므로 쉽게 업그레이드할 수 없으며 다시 설치해야 합니다. 그래서지원! ! !
- 소스에서 ncurses를 설치합니다. 소스코드를 받아 컴파일해보세요. 쉽지 않은 작업일 수 있다는 점을 참고하세요.
- Ubuntu 저장소 대신 사용할 수 있는 Natty의 "호환 가능한" 저장소를 찾으세요. 어쩌면 Debian이 작동할 수도 있지만 어느 Debian Natty가 파생되었는지 알아내야 합니다. 이것은 작동하지 않을 수 있습니다!
최신 Ubuntu로 업그레이드하는 것이 좋습니다. 보안 업데이트의 이점도 누릴 수 있습니다.
답변3
방금 우분투에서 명령을 변경했는데 작동했습니다.
sudo apt-get install ncurses-dev
어쩌면 ncurses-devel은 이전 버전의 패키지 이름일 수도 있습니다.
결과는 다음과 같습니다.
sudo apt-get install ncurses-dev 패키지 목록 읽기... 완료 종속성 트리 구축... 완료 상태 정보 읽기... 완료 참고, 제안된 대로 "ncurses-dev" 대신 "libncurses-dev"를 선택하세요. 패키지: ncurses- doc에서는 다음과 같은 새 패키지를 설치합니다: libncurses-dev 0개 업그레이드, 1개 새로 설치, 0개 제거, 33개 업그레이드 안 함. 381kB 아카이브를 확보하는 데 필요합니다. 이 작업 후에는 2,428kB의 추가 디스크 공간이 사용됩니다. 획득 : 1https://mirrors.tuna.tsinghua.edu.cn/ubuntu-portsjammy-updates/main arm64 libncurses-dev arm64 6.3-2ubuntu0.1 [381 kB] 1초에 381 kB 획득(754 kB/s)
이전에 선택하지 않은 패키지 libncurses-dev:arm64를 선택합니다. (데이터베이스를 읽는 중... 현재 설치된 213220개의 파일 및 디렉터리.) 압축 풀기 준비 완료.../libncurses-dev_6.3-2ubuntu0.1_arm64.deb... libncurses-dev:arm64 (6.3-2ubuntu0.1 ) 압축 풀기 .. libncurses-dev:arm64(6.3-2ubuntu0.1) 설정... man-db(2.10.2-1)에 대한 트리거 처리... 프로세스 검색...
Linux 이미지 검색...
커널 실행은 다음과 같습니다. 최신. 서비스를 다시 시작할 필요가 없습니다. 컨테이너를 다시 시작할 필요가 없습니다. 오래된 바이너리를 실행하는 사용자 세션이 없습니다. 이 호스트에서 오래된 하이퍼바이저(qemu) 바이너리를 실행하는 VM 게스트가 없습니다.