Score:0

Cannot compile ubuntu linux kernel second time

nc flag

I try to compile linux kernel multiple times. But I failed to compile second time. How to avoid this problem?

  1. First time, Following command successfully
LANG=C fakeroot debian/rules clean
LANG=C fakeroot debian/rules binary
  1. Second time, Following command failed with following error. but build works fine.
LANG=C fakeroot debian/rules clean
LANG=C fakeroot debian/rules binary

Error log is follows (just last 3line)

mkdir /home/ubuntu/tmp/linux-aws-5.4.0/debian/linux-libc-dev/usr/include/x86_64-linux-gnu
mkdir: cannot create directory '/home/ubuntu/tmp/linux-aws-5.4.0/debian/linux-libc-dev/usr/include/x86_64-linux-gnu': File exists
make: *** [debian/rules.d/2-binary-arch.mk:529: install-arch-headers] Error 1

As a workaround, I remove debian/linux-libc-dev directory.

hansfn avatar
mq flag
I experience the same with Ubuntu 22.04. I was planning to use your work-around ...
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.