Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

.deb packages are not getting downloaded from my repository

User discussion about Debian Development, Debian Project News and Announcements. Not for support questions.
Post Reply
Message
Author
anurag
Posts: 5
Joined: 2012-08-18 04:52

.deb packages are not getting downloaded from my repository

#1 Post by anurag »

I am a newbie. Please forgive for my mistake if any.

I have created a repository by using tool reprepro. I have added some packages to that repository. And i have added it to /etc/apt/sources.list file. However when I enter apt-get update the packages from my repository are not downloaded to /var/cache/apt/archives/. This is what I get at command:

Code: Select all

Running /usr/bin/apt-get update
Ign http://172.16.0.124 lucid Release.gpg
Ign http://172.16.0.124/ubuntu/ lucid/main Translation-en
Ign http://172.16.0.124 squeeze Release.gpg
Ign http://172.16.0.124/debian/ squeeze/main Translation-en
Hit http://172.16.0.124 lucid Release                                                                                                      
Ign http://172.16.0.124 squeeze Release                                                                                                    
Ign http://172.16.0.124 lucid/main Sources/DiffIndex                                                                                       
Ign http://172.16.0.124 lucid/main amd64 Packages/DiffIndex                                                                                                 
Ign http://172.16.0.124 squeeze/main Sources                                                                                                                
Ign http://172.16.0.124 squeeze/main amd64 Packages                                                                                                       
Ign http://172.16.0.124 lucid/main Sources                                                                                                                  
Ign http://172.16.0.124 lucid/main amd64 Packages                                                                                                           
Ign http://172.16.0.124 squeeze/main Sources                                                                                                                
Ign http://172.16.0.124 squeeze/main amd64 Packages                                                                                                         
Ign http://172.16.0.124 lucid/main Sources                                                                                                                  
Ign http://172.16.0.124 lucid/main amd64 Packages                                                                                                           
Err http://172.16.0.124 squeeze/main Sources                                                                                                                
  404  Not Found
Err http://172.16.0.124 squeeze/main amd64 Packages                                                                                                         
  404  Not Found
Hit http://172.16.0.124 lucid/main Sources                                                                                                                  
Hit http://172.16.0.124 lucid/main amd64 Packages                                                                                                           
Hit http://ftp.us.debian.org squeeze Release.gpg                                                                                                            
Ign http://ftp.us.debian.org/debian/ squeeze/contrib Translation-en  
Ign http://ftp.us.debian.org/debian/ squeeze/main Translation-en     
Hit http://security.debian.org squeeze/updates Release.gpg
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en
Ign http://security.debian.org/ squeeze/updates/main Translation-en  
Hit http://ftp.us.debian.org squeeze Release                         
Hit http://ftp.us.debian.org squeeze/main Sources
Hit http://security.debian.org squeeze/updates Release
Hit http://ftp.us.debian.org squeeze/contrib Sources
Hit http://ftp.us.debian.org squeeze/main amd64 Packages
Hit http://ftp.us.debian.org squeeze/contrib amd64 Packages
Hit http://security.debian.org squeeze/updates/main Sources
Hit http://security.debian.org squeeze/updates/contrib Sources
Hit http://security.debian.org squeeze/updates/main amd64 Packages
Hit http://security.debian.org squeeze/updates/contrib amd64 Packages
W: Failed to fetch http://172.16.0.124/debian/dists/squeeze/main/source/Sources.gz  404  Not Found

W: Failed to fetch http://172.16.0.124/debian/dists/squeeze/main/binary-amd64/Packages.gz  404  Not Found

E: Some index files failed to download, they have been ignored, or old ones used instead.
Please help.

Thanks.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: .deb packages are not getting downloaded from my reposit

#2 Post by stevepusser »

You aren't going to get a lot of admiration for all those Ubuntu Lucid repos tacked onto Squeeze.

Try using file instead of http for the repo's address, as in

Code: Select all

deb file:///home/something/something/my_local_repo/ main non-free
if it's on your local machine. Also, are you running the reprepro update script in the repo to refresh the list of packages?
MX Linux packager and developer

User avatar
swirling_vortex
Posts: 631
Joined: 2007-02-16 20:30
Location: Pennsylvania

Re: .deb packages are not getting downloaded from my reposit

#3 Post by swirling_vortex »

First, make sure you can ping that IP address. I'm assuming that's a server on your local network. Remove the Ubuntu sources since Ubuntu's packages are not compatible with Debian.

anurag
Posts: 5
Joined: 2012-08-18 04:52

Re: .deb packages are not getting downloaded from my reposit

#4 Post by anurag »

Thanks swirling_vortex & stevepusser for your replies. I am using tutorials at http://www.jejik.com/articles/2006/09/s ... _reprepro/ & http://www.roethof.net/techblog/setting ... -reprepro/ (link broken now) as reference. As per your instructions I have made following changes.

My /var/www/debian/conf/distributions file:

Code: Select all

Origin: Anurag Patil
Label: Anurag Patil
Codename: squeeze
Architectures: i386 amd64 source
Components: main
Description: Anurag Patil's APT Repository
My /var/www/debian/conf/options file:

Code: Select all

verbose
basedir /var/www/debian
My /etc/apache2/sites-available/172.16.0.124 file ('172.16.0.124' is file name):

Code: Select all

<VirtualHost *:80>
	ServerAdmin anurag@anuragpatil.com
	ServerName 172.16.0.124
	ServerAlias 172.16.0.124
	DocumentRoot /var/www

	<Directory /var/www/>
		Options Indexes FollowSymLinks MultiViews
		DirectoryIndex index.html
		AllowOverride None
		Order allow, deny
		allow from all
	</Directory>

	# Hide the conf/ directory for all repositories
	<Directory "/var/www/*/conf">
		Order allow,deny
		Deny from all
		Satisfy all
	</Directory>

	# Hide the db/ directory for all repositories
	<Directory "/var/www/*/db">
		Order allow,deny
		Deny from all
		Satisfy all
	</Directory>

	CustomLog /var/log/apache2/access.log combined
	ErrorLog /var/log/apache2/error.log
	LogLevel warn
</VirtualHost>
My /etc/apt/sources.list file:

Code: Select all

deb http://172.16.0.124/debian squeeze main
deb-src http://172.16.0.124/debian squeeze main
I can also see Index of /debian when I enter http://172.16.0.124/debian/ in browser. It shows:

Code: Select all

Index of /debian

	Name	Last modified	Size	Description
	Parent Directory	 	 -	 
	conf/	        21-Aug-2012 15:36	 -	 
	db/	        21-Aug-2012 15:17	 -	 
	dists/	21-Aug-2012 13:27	 -	 
	pool/	        21-Aug-2012 13:27	 -	 
Apache/2.2.14 (Ubuntu) Server at 172.16.0.124 Port 80
However when I enter apt-get update the packages from my repository are not downloaded to /var/cache/apt/archives/. Am I missing something?

Thanks.

User avatar
62chevy
Posts: 1589
Joined: 2009-10-25 01:09
Location: West Virginia

Re: .deb packages are not getting downloaded from my reposit

#5 Post by 62chevy »

Have you looked at the official page yet? http://mirrorer.alioth.debian.org/
Everything seams old so you may want consider apt-catcher or apt-catcher-ng.

Code: Select all

Package: apt-cacher                      
State: not installed
Version: 1.6.12
Priority: optional
Section: net
Maintainer: Mark Hindley <mark@hindley.org.uk>
Uncompressed Size: 315 k
Depends: perl, libwww-curl-perl (>= 4.00), libwww-perl, libdigest-sha1-perl, libfreezethaw-perl, ed, libio-compress-zlib-perl, libio-compress-bzip2-perl,
         libio-interface-perl, libfilesys-diskspace-perl
Recommends: libberkeleydb-perl
Suggests: libio-socket-inet6-perl
Description: Caching proxy for Debian package and source files
 Apt-cacher performs caching of .deb and source packages which have been downloaded by local users. It is most useful for local area networks with slow
 internet uplink. 
 
 When a package is requested, the cache checks whether it already has the requested version, in which case it sends the package to the user immediately. If
 not, it downloads the package while streaming it to the user at the same time. A local copy is then kept for use by other users. 
 
 Apt-cacher has been optimized for best utilization of network bandwidth and efficiency even on slow low-memory servers. Multiple ways of installation are
 possible: as a stand-alone HTTP proxy, as a daemon executed by inetd or as a CGI program. Client machines are configured by changing APT's proxy
 configuration or modification of access URLs in sources.list. 
 
 The package includes utilities to clean the cache (removing obsolete package files), generate usage reports and import existing package files.  Experimental
 features include a simple package checksum verification framework, optional IPv6 support and pre-fetching of new packages (upgrade candidates). 
 
 Apt-cacher can be used as a replacement for apt-proxy, with no need to modify client's /etc/apt/sources.list files (and even reusing its config and cached
 data), or as an alternative to approx.
I use apt-mirror and that works fine for Squeeze but Apt has changed in Wheezy and you will need to write you own scripts to fetch the Translation files.
Debian Buster

adenukolnis
Posts: 459
Joined: 2012-02-24 18:36

Re: .deb packages are not getting downloaded from my reposit

#6 Post by adenukolnis »

anurag wrote: However when I enter apt-get update the packages from my repository are not downloaded to /var/cache/apt/archives/.
???

cynwulf

Re: .deb packages are not getting downloaded from my reposit

#7 Post by cynwulf »

You need to add the security repo and squeeze-updates (volatile). Clear all of that butnut crap out if you haven't already...

anurag
Posts: 5
Joined: 2012-08-18 04:52

Re: .deb packages are not getting downloaded from my reposit

#8 Post by anurag »

adenukolnis wrote:
anurag wrote: However when I enter apt-get update the packages from my repository are not downloaded to /var/cache/apt/archives/.
???
Hello adenukolnis,

As far as I know when we update system the the .deb packages are downloaded to /var/cache/apt/archives/. I am using command

Code: Select all

apt-get -d update
to download packages from my repository to

Code: Select all

/var/cache/apt/archives/
Am I wrong to enter apt-get update? Is my understanding is wrong? What is wrong here?

Thanks.

User avatar
62chevy
Posts: 1589
Joined: 2009-10-25 01:09
Location: West Virginia

Re: .deb packages are not getting downloaded from my reposit

#9 Post by 62chevy »

Code: Select all

apt-get -d update 
This command does not make any sense. But ...

Code: Select all

apt-get update 
And then ...

Code: Select all

apt-get dist-upgrade 

Those two commands used one after the other make sense.


Now this makes sense ...

Code: Select all

apt-get install Linux-image-$(uname -r) -d
Debian Buster

adenukolnis
Posts: 459
Joined: 2012-02-24 18:36

Re: .deb packages are not getting downloaded from my reposit

#10 Post by adenukolnis »

apt-get update simply updates the package lists with packages that are available. It does not download any deb packages.

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: .deb packages are not getting downloaded from my reposit

#11 Post by phenest »

This does appear like you are putting the cart before the horse. You are trying to build a repository with very little/no understanding of how apt works.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

Post Reply