bhuman / BHumanCodeRelease

The official B-Human code releases
Other
194 stars 129 forks source link

root image error #53

Closed camz2000 closed 2 years ago

camz2000 commented 2 years ago

Hi! I'm Camila Álvarez from the University of la Sabana, and I'm working with my team in the image processing optimization of the robot NAO, and we find intersting your code. Therefore, with my team, we are trying to compile this repository, but in the part of the root image, appears an error which says the following message: image

It seems that isn't creating a directory that allows the compilation of the code. I will apreciate if you could guide us to solve this problem. Thank you so much.

balisujohn commented 2 years ago

Definitely make sure you are using Ubuntu 20.04. We have had issues with 22.04 if I remember correctly.

ahasselbring commented 2 years ago

Definitely make sure you are using Ubuntu 20.04. We have had issues with 22.04 if I remember correctly.

That is also my first guess. Creating a root image with 22.04 is definitely not working with the 2021 release, but I think that was yet another error message (something about /etc/hosts).

camz2000 commented 2 years ago

Hmmm ok. Until Tuesday we have access to the robot, please don't close the chat, and we will try it again. Thank you :)

ahasselbring commented 2 years ago

Since I just created a root image (on Linux Mint 20.3 which is based on Ubuntu 20.04), I can more or less rule out that the cause is in the Ubuntu package base. Are you sure this is the first command that fails? (It should be because the script exits whenever a command fails). Otherwise, can you give the output of ls -l /tmp/b-human-root/etc/systemd/system after the command failed?

camz2000 commented 2 years ago

We executed that line ls -l /tmp/b-human-root/etc/systemd/system and we have this:

image

It seems that the directory sysinit.target.wants is not created, what should we do?

camz2000 commented 2 years ago

Another problem that we have is that this libraries aren't installing. We could replace libqt6 to libqy5?

image

Thank you for your colaboration.

ahasselbring commented 2 years ago

You should follow the instructions from https://wiki.b-human.de/coderelease2021/ (https://wiki.b-human.de/master/ is about internal development version)

ahasselbring commented 2 years ago

Regarding the original problem: Can you try removing line 104 (apt-get dist-upgrade) from createRootImage and run the script again?

ahasselbring commented 2 years ago

In fact, you should just replace line 104 by DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y to make it work on Ubuntu 22.04.

camz2000 commented 2 years ago

Thank you so much. It works with the Ubuntu 20.04Lts. Futhermore, the link that you gave us was the correct one. 👍. We aare grateful with you.