Debian Repo issues

95 views
Skip to first unread message

Matt Pascoe

unread,
Jul 27, 2017, 11:45:23 AM7/27/17
to RCDevs Security Solutions - Technical
I have been trying to set up your repo on an Ubuntu 16.04 system.

I currently have the following in /etc/apt/sources.list.d/rcdevs.list:

deb http://www.rcdevs.com/repos debian/

When I apt-get update I receive the following error:

0% [Connecting to www.rcdevs.com (78.141.172.203)]
Ign:7 http://www.rcdevs.com/repos debian/ InRelease
Ign:8 http://www.rcdevs.com/repos debian/ Release
Ign:9 http://www.rcdevs.com/repos debian/ Packages
Ign:10 http://www.rcdevs.com/repos debian/ Translation-en_US
Ign:11 http://www.rcdevs.com/repos debian/ Translation-en
Ign:9 http://www.rcdevs.com/repos debian/ Packages
Ign:10 http://www.rcdevs.com/repos debian/ Translation-en_US
Ign:11 http://www.rcdevs.com/repos debian/ Translation-en
Ign:9 http://www.rcdevs.com/repos debian/ Packages
Ign:10 http://www.rcdevs.com/repos debian/ Translation-en_US
Ign:11 http://www.rcdevs.com/repos debian/ Translation-en
Ign:9 http://www.rcdevs.com/repos debian/ Packages
Ign:10 http://www.rcdevs.com/repos debian/ Translation-en_US
Ign:11 http://www.rcdevs.com/repos debian/ Translation-en
Ign:9 http://www.rcdevs.com/repos debian/ Packages
Ign:10 http://www.rcdevs.com/repos debian/ Translation-en_US
Ign:11 http://www.rcdevs.com/repos debian/ Translation-en
Err:9 http://www.rcdevs.com/repos debian/ Packages
  403  Forbidden
Ign:10 http://www.rcdevs.com/repos debian/ Translation-en_US
Ign:11 http://www.rcdevs.com/repos debian/ Translation-en
Reading package lists... Done
W: The repository 'http://www.rcdevs.com/repos debian/ Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://www.rcdevs.com/repos/debian/Packages  403  Forbidden
E: Some index files failed to download. They have been ignored, or old ones used instead. 

I then tried to simply curl the file:

# curl http://www.rcdevs.com/repos/debian/Packages
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /repos/debian/Packages
on this server.</p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at www.rcdevs.com Port 80</address>
</body></html>

Now, the strange part is that I CAN curl the file from my desktop, I am just unable to do so from my server.  I was also able to get some of this to work yesterday from the server but am no longer able.

Yesterday when this was partially working (I.e I could do an apt-cache search rcdevs and see your packages) it would fail when trying to install the package:

# apt-get install ldproxy
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  ldproxy
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,678 kB of archives.
After this operation, 11.1 MB of additional disk space will be used.
Err:1 http://www.rcdevs.com/repos debian/ ldproxy 1.0.5-1
  404  Not Found
E: Failed to fetch http://www.rcdevs.com/repos/ldproxy-1.0.5-1.amd64.deb  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 

Ultimately it points back to something strange on the repo but I certainly could have it configured wrong on my side.  I'm not used to dealing with the 'flat repo' style and would have expected the repo definition to look something like:

deb http://www.rcdevs.com/repos/debian xenial main

Additionally I would offer that you might look into https://www.aptly.info/ as a handy solution for managing debian repos 

Thanks again for the great product!
 

Matt Pascoe

unread,
Jul 27, 2017, 12:00:33 PM7/27/17
to RCDevs Security Solutions - Technical
In an effort to move past the repo issues I manually downloaded the .deb packages I was interested in.  While trying to install those I ran into the following errors.

NOTE, the slapd error was mentioned in a post a few weeks ago on this forum.  I will just confirm the same challenge on Ubuntu 16.04.  This is an issue as I can not simply just auto install these packages without first having to do other things to the system.

Here are the errors I encountered:

root@a1510:~# dpkg -i webadm-1.5.11-4.amd64.deb
Selecting previously unselected package webadm.
(Reading database ... 65443 files and directories currently installed.)
Preparing to unpack webadm-1.5.11-4.amd64.deb ...
Unpacking webadm (1.5.11-4) ...
dpkg-deb (subprocess): cannot copy archive member from 'webadm-1.5.11-4.amd64.deb' to decompressor pipe: unexpected end of file or stream
dpkg-deb: error: subprocess paste returned error exit status 2
dpkg: error processing archive webadm-1.5.11-4.amd64.deb (--install):
 cannot copy extracted data for './opt/webadm/doc/WebADM_YubiHSM.pdf' to '/opt/webadm/doc/WebADM_YubiHSM.pdf.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
 webadm-1.5.11-4.amd64.deb
root@a1510:~# dpkg -i slapd-1.0.6-0.amd64.deb
Selecting previously unselected package slapd.
(Reading database ... 65443 files and directories currently installed.)
Preparing to unpack slapd-1.0.6-0.amd64.deb ...
Unpacking slapd (1.0.6-0) ...
dpkg: dependency problems prevent configuration of slapd:
 libsasl2-2:amd64 (2.1.26.dfsg1-14build1) breaks slapd (<= 2.4.25-3) and is installed.
  Version of slapd to be configured is 1.0.6-0.
dpkg: error processing package slapd (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 slapd

Matt Pascoe

unread,
Jul 27, 2017, 4:21:44 PM7/27/17
to RCDevs Security Solutions - Technical
I tried again to download the webadm package.  it looks like for some reason the original download died and that was the cause of the error.  I was able to install the webadm package with no issue after downloading it again.  Not sure what that issue was, as my curl command did not register an error on the initial download.

The slapd still has the libsasl2 dependency problem however.

francois...@rcdevs.com

unread,
Jul 28, 2017, 2:38:32 AM7/28/17
to RCDevs Security Solutions - Technical
Hi Matt,

The download error was due to a short maintenance and the dev team is going to rename the slapd package to avoid conflict with the debian version of the package.

Thanks for your feedback
Reply all
Reply to author
Forward
0 new messages