LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-12-2013, 07:56 PM   #1
cmccullo
Member
 
Registered: Jan 2011
Posts: 31

Rep: Reputation: 0
Local Ubuntu repository


I work with an isolated network - no Internet connection. I download the apt-mirror repository on an “outside” server, then sneaker-net the repository to the isolated network. The problem is the outside server is 32 bit and it only downloads the 32 bit binary files. The isolated network has both 32 and 64 bit Ubuntu machines. How do I get the outside server to download both 32 and 64 bit repository files?
 
Old 12-12-2013, 08:16 PM   #2
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
To download specific architectures you must tell it what you want to download otherwise it will default to i386. So if you have
Code:
deb http://us.archive.ubuntu.com/ubuntu precise main restricted universe multiverse
you need to change your configuration file like this
Code:
deb-i386 http://us.archive.ubuntu.com/ubuntu precise main restricted universe multiverse
deb-amd64 http://us.archive.ubuntu.com/ubuntu precise hardy main restricted universe multiverse
Of course adjust the repository location to whatever country you are in.

Last edited by k3lt01; 12-12-2013 at 08:17 PM.
 
Old 12-13-2013, 04:07 PM   #3
cmccullo
Member
 
Registered: Jan 2011
Posts: 31

Original Poster
Rep: Reputation: 0
I'll give that a try thanks. But how do I form the source lines in mirror.list? Is it deb-i386-src or deb-src-i386?
Here is my mirror.list

# 13 December 2013
############# config ##################
#
# set base_path /var/spool/apt-mirror
#
# set mirror_path $base_path/mirror
# set skel_path $base_path/skel
# set var_path $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch <running host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads 20
set _tilde 0
#
############# end config ##############

deb-i386 http://archive.ubuntu.com/ubuntu precise main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu precise-updates main restricted universe multiverse
#deb-i386 http://archive.ubuntu.com/ubuntu precise-proposed main restricted universe multiverse
#deb-i386 http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse

deb-i386-src http://archive.ubuntu.com/ubuntu precise main restricted universe multiverse
deb-i386-src http://archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb-i386-src http://archive.ubuntu.com/ubuntu precise-updates main restricted universe multiverse
#deb-i386-src http://archive.ubuntu.com/ubuntu precise-proposed main restricted universe multiverse
#deb-i386-src http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse

deb-amd64 http://archive.ubuntu.com/ubuntu precise main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu precise-updates main restricted universe multiverse
#deb-amd64 http://archive.ubuntu.com/ubuntu precise-proposed main restricted universe multiverse
#deb-amd64 http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse

deb-amd64-src http://archive.ubuntu.com/ubuntu precise main restricted universe multiverse
deb-amd64-src http://archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb-amd64-src http://archive.ubuntu.com/ubuntu precise-updates main restricted universe multiverse
#deb-amd64-src http://archive.ubuntu.com/ubuntu precise-proposed main restricted universe multiverse
#deb-amd64-src http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse

clean http://archive.ubuntu.com/ubuntu
 
Old 12-13-2013, 06:33 PM   #4
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Deb source is like an architecture so the lines would be
Code:
deb-i386 http://archive.ubuntu.com/ubuntu precise main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu precise-updates main restricted universe multiverse
#deb-i386 http://archive.ubuntu.com/ubuntu precise-proposed main restricted universe multiverse
#deb-i386 http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse

deb-amd64 http://archive.ubuntu.com/ubuntu precise main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu precise-updates main restricted universe multiverse
#deb-amd64 http://archive.ubuntu.com/ubuntu precise-proposed main restricted universe multiverse
#deb-amd64 http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse

deb-src http://archive.ubuntu.com/ubuntu precise main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu precise-updates main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu precise-proposed main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse

clean http://archive.ubuntu.com/ubuntu
 
1 members found this post helpful.
Old 12-18-2013, 10:36 AM   #5
cmccullo
Member
 
Registered: Jan 2011
Posts: 31

Original Poster
Rep: Reputation: 0
That works for my 32-bit machines. My 64-bit machines are giving me errors and warnings about ppa.launchpad.net.

Err http://ppa.launchpad.net precise/main Sources
Something wicked happened resolving 'ppa.launchpad.net:http' (-5 - No address associated with hostname)

W: Failed to fetch http://ppa.launchpad.net/webupd8team...source/Sources Something wicked happened resolving 'ppa.launchpad.net:http' (-5 - No address associated with hostname)

Do I need to download and duplicate another repository or something?
 
Old 12-18-2013, 02:38 PM   #6
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
The owner of that launchpad PPA may not have sources available. If that is the case you will get that error.
 
  


Reply

Tags
ubuntu 12.04



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Create a local repository on ubuntu 13.04 server LXer Syndicated Linux News 0 05-31-2013 01:01 AM
Local Ubuntu/Debian repository with self-made packages Lexus45 Ubuntu 4 01-20-2012 01:19 AM
LXer: Create Your Own Local Ubuntu Repository LXer Syndicated Linux News 0 01-21-2010 09:30 AM
Local ubuntu DVD repository dipuasks Ubuntu 1 12-15-2009 03:51 AM
Creating Ubuntu Local Repository? your_shadow03 Linux - Server 1 03-18-2009 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration