Getting error :setfacl: /home/ubuntu/.local: No such file or directory
Lab 3.2 LXC
Answers
-
What OS are you using to run the labs, in a virtual machine or native installation?
What ID is used to run the lab exercise, what are the outputs ofecho $HOMEandls -a $HOMEcommands?Regards,
-Chris0 -
hi, I´m facing the same issue, I´m using a VM with ubuntu server (host is Windows 10)
I tried to solve it creating the /.local directory but when I tried to start the container it failed (not sure if this error is the cause of the issue)find below the output of the commands requested:
1 -
I'm facing this same issue as well. I'm using a VM with Ubuntu Server (Host OS is Windows 10)
see the outputs of the commands
echo $HOME and ls -a $HOME
0 -
Hi everyone, so here's an explanation and a solution to this.
Explanation
In current Unix OS,
/usris where user-land programs and data (as opposed to 'system land' programs and data) are stored.
The/usr/localdirectory mirrors the structure of the/usrdirectory, but can be used by system administrators to install local or third party packages for all users.~/.localwhich is the same as/home/<user>/.localis made to mirror/usr/localdirectory but can be used by a partictular user to install local or third party packages for this particular user. This directory is often created by 3rd party applications/packages on the host OS.Solution
Steps
In my case, I simply installed
pip3withsudo apt install python3-pip
Related files to this package where installed to/usrI installed a random package using
pip3 install --user ipython
This installs ipython for my particular user, so it automatically creates a.localdirectory in my home directory where folders and files related to this package are stored.
I hope this helps :-)
-1 -
The
~/.localdirectory (if missing) can easily be created withmkdir .local.If the
lxc-startcommand does not run the container upon creation withlxc-create(which seems to be an unexpected behavior), I recommend a reboot of the VM. After the VM reboot the container started successfully.Regards,
-Chris1 -
I have found the same issue. I have created the directory manually, and rebooted the VM.

I'm running 24.04 LTS in VirtualBox.
Any further suggestions would be appreciated.0 -
Hi @eerojin,
Such a recent release of the guest OS is not yet recommended for the lab environment.
The lab guide is calling for an earlier and more stable version of the guest OS, please install the recommended release to ensure consistency in lab exercise behavior.
Regards,
-Chris0 -
Hi @chrispokorni The same error occurs in Ubuntu 20.04, which is the recommended operating system for training. I've already asked about the fix in this forum LINK, in a new thread, and accidentally found this question from 2021.... But at the moment it is 2024 and I wanted to know if the whole course and others are similar? I joined the course probably two weeks ago and I see that the documentation, still has bugs reported several years earlier.
0 -
Hi @mixer3d,
Thank you for flagging the missing directory and software package. The content shall be updated where deemed necessary to address the flagged items.
Regards,
-Chris1
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 755 Linux Foundation IT Professional Programs
- 375 Cloud Engineer IT Professional Program
- 170 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 5 DevOps & GitOps IT Professional Program
- 100 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 2 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 5 Cloud & Containers Training
- 1 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 2 Open Source Best Practice Training
- 2 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 795 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 90 Storage
- 769 Linux Distributions
- 81 Debian
- 68 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 112 Mobile Computing
- 20 Android
- 77 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 393 Off Topic
- 121 Introductions
- 182 Small Talk
- 29 Study Material
- 980 Programming and Development
- 310 Kernel Development
- 652 Software Development
- 995 Software
- 387 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)

