How to properly add a new repository?

Carlos Almeida Jr carlos at aroeira.io
Wed Dec 8 02:29:17 CET 2021


Hello there!

I've dug in the list, but I didn't find a proper way to add a new repository with success. Could someone help?

I'm trying to add the package docker-ce defining:

1.  A class named DOCKER;
2.  In package_config, a file also named DOCKER containing
PACKAGES install
docker-ce docker-ce-cli containerd.io
3. In package_config, a file named DOCKER.asc (X��*�Z�|� ...) with the public key.

To add the source repository, I tried to add in files/etc/apt/sources.list.d/docker.list and also did that using chroot.

When I run fai-set, by example, the docker repository is listed without any failures. However, running fai-mirror I always have as answer:
x---Package docker-ce is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'docker-ce' has no installation candidate
ERROR: 25600 25600
ERROR:  apt-get  -d        -o Aptitude::Log=/dev/null       -o Aptitude::CmdLine::Ignore-Trust-Violations=yes      -o APT::Get::AllowUnauthenticated=true       -o Acquire::AllowInsecureRepositories=true       -o DPkg::force-conflicts::=yes       -o Dir::State=/home/mirror/aptcache/var/lib/apt       -o Dir::Log=/home/mirror/aptcache/var/log/apt       -o Dir::State::extended_states=/home/mirror/aptcache/var/lib/apt/lists/extended_states       -o Dir::State::status=/home/mirror/aptcache/statefile       -o Dir::Cache=/home/mirror/aptcache/var/cache/apt       -o Dir::State=/home/mirror/aptcache/var/cache/apt       -o Dir::Cache::Archives=/home/mirror/aptcache/var/cache/apt/archives       -o Dir::Etc=/home/mirror/aptcache/etc/apt/       -o Dir::State::Lists=/home/mirror/aptcache/var/lib/apt/lists/ -y --fix-missing install docker-ce return code 100
---x

Cheers,
--
Carlos Almeida Jr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20211208/45299a06/attachment.html>


More information about the linux-fai mailing list