We are trying to create a repository in docker to store deb packages (this link goes directly to GitHub containing Dockerfile) . The idea is to have a container to distribute the applications developed, but we are not able to make the package available. Several sources have been consulted to try to mount the image (Docker):
- This tutorial was used to build the debian repository server, with dput (Above we were able to use the dput, due to being in different port, but then we were able to find the configuration)
- This tutorial was used to attempt to mount the repository with the local debian packages,
This is the package I am generating and trying to send to the repository , after entering the directory containing the (this directory is on my local machine) I generate the deb file with the following command:
sudo dpkg-buildpackage -b
This is my directory structure in the debian repository from
/etc/i9corp/packages/
.
|-- internal
|-- mini-dinstall
| |-- REJECT
| '-- incoming
|-- non-free
|-- pool
| |-- internal
| |-- non-free
| |-- stable
| |-- unstable
| '-- updates
|-- stable
|-- unstable
'-- updates
This is my /etc/dput.cf configuration file
[DEFAULT]
login = *
method = ftp
hash = md5
allow_unsigned_uploads = 0
allow_dcut = 0
run_lintian = 0
run_dinstall = 0
check_version = 0
scp_compress = 0
post_upload_command =
pre_upload_command =
passive_ftp = 1
default_host_main =
allowed_distributions = (?!UNRELEASED)
[i9corp-local]
fqdn = 10.224.100.12
method = scp
login = repo
incoming = /etc/i9corp/packages/debian/mini-dinstall/incoming
allow_unsigned_uploads = 1
post_upload_command = ssh [email protected] -p 7890 mini-dinstall --batch
ssh_config_options =
Port 7890
To run the dput (on my local machine) I was using the following command:
sudo dput i9corp-local hello_2.0.0-3_amd64.changes
And I get the following output:
Uploading to i9corp-local (via scp to 10.224.100.12):
[email protected]'s password:
hello_2.0.0-2_amd64.buildinfo 100% 4531 10.0MB/s 00:00
hello_2.0.0-3_all.deb 100% 776 2.6MB/s 00:00
hello_2.0.0-3_amd64.buildinfo 100% 4531 12.2MB/s 00:00
hello_2.0.0-3_amd64.changes 100% 1198 4.0MB/s 00:00
Successfully uploaded packages.
[email protected]'s password:
mini-dinstall [140031543572224] WARNING: No process running at 43, removing lockfile
mini-dinstall [140031483315968] ERROR: Unable to install
"/etc/i9corp/packages/debian/mini-dinstall/incoming/hello_2.0.0-2_amd64.changes"; adding to screwed list
Traceback (most recent call last):
File "/usr/bin/mini-dinstall", line 523, in run
self._install_changefile(changefilename, changefile, 0)
File "/usr/bin/mini-dinstall", line 584, in _install_changefile
raise DinstallException('Unknown distribution "%s" in \"%s\"' % (dist, changefilename,))
DinstallException: 'Unknown distribution "stretch" in "/etc/i9corp/packages/debian/mini-dinstall/incoming/hello_2.0.0-2_amd64.changes"'
mini-dinstall [140031483315968] ERROR: Unable to install "/etc/i9corp/packages/debian/mini-dinstall/incoming/hello_2.0.0-3_amd64.changes"; adding to screwed list
Traceback (most recent call last):
File "/usr/bin/mini-dinstall", line 523, in run
self._install_changefile(changefilename, changefile, 0)
File "/usr/bin/mini-dinstall", line 584, in _install_changefile
raise DinstallException('Unknown distribution "%s" in \"%s\"' % (dist, changefilename,))
DinstallException: 'Unknown distribution "stretch" in "/etc/i9corp/packages/debian/mini-dinstall/incoming/hello_2.0.0-3_amd64.changes"'
The mini-dinstall that is in the repository (docker): displays the following log:
Apr 25 20:21:39 mini-dinstall [140031543572224] INFO: Booting mini-dinstall 0.6.30
Apr 25 20:21:39 mini-dinstall [140031543572224] INFO: Initializing archive indexer non-free
Apr 25 20:21:39 mini-dinstall [140031543572224] INFO: Initializing archive indexer internal
Apr 25 20:21:39 mini-dinstall [140031543572224] INFO: Initializing archive indexer unstable
Apr 25 20:21:39 mini-dinstall [140031543572224] INFO: Initializing archive indexer updates
Apr 25 20:21:39 mini-dinstall [140031543572224] INFO: Initializing archive indexer stable
Apr 25 20:21:39 mini-dinstall [140031543572224] INFO: Initializing incoming processor
Apr 25 20:21:39 mini-dinstall [140031483315968] INFO: Created new installer thread (incoming)
Apr 25 20:21:39 mini-dinstall [140031483315968] INFO: Entering batch mode...
Apr 25 20:21:39 mini-dinstall [140031483315968] INFO: Examining "/etc/i9corp/packages/debian/mini-dinstall/incoming/hello_2.0.0-2_amd64.changes"
Apr 25 20:21:39 mini-dinstall [140031483315968] INFO: Examining "/etc/i9corp/packages/debian/mini-dinstall/incoming/hello_2.0.0-3_amd64.changes"
Apr 25 20:21:39 mini-dinstall [140031483315968] ERROR: Unable to install "/etc/i9corp/packages/debian/mini-dinstall/incoming/hello_2.0.0-2_amd64.changes"; adding to screwed list
Traceback (most recent call last):
File "/usr/bin/mini-dinstall", line 523, in run
self._install_changefile(changefilename, changefile, 0)
File "/usr/bin/mini-dinstall", line 584, in _install_changefile
raise DinstallException('Unknown distribution "%s" in \"%s\"' % (dist, changefilename,))
DinstallException: 'Unknown distribution "stretch" in "/etc/i9corp/packages/debian/mini-dinstall/incoming/hello_2.0.0-2_amd64.changes"'
Apr 25 20:21:39 mini-dinstall [140031483315968] ERROR: Unable to install "/etc/i9corp/packages/debian/mini-dinstall/incoming/hello_2.0.0-3_amd64.changes"; adding to screwed list
Traceback (most recent call last):
File "/usr/bin/mini-dinstall", line 523, in run
self._install_changefile(changefilename, changefile, 0)
File "/usr/bin/mini-dinstall", line 584, in _install_changefile
raise DinstallException('Unknown distribution "%s" in \"%s\"' % (dist, changefilename,))
DinstallException: 'Unknown distribution "stretch" in "/etc/i9corp/packages/debian/mini-dinstall/incoming/hello_2.0.0-3_amd64.changes"'
Apr 25 20:21:39 mini-dinstall [140031483315968] INFO: All packages in incoming dir installed; exiting
Version of mini-dinstall 0.6.30