LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-24-2023, 09:49 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Rep: Reputation: 255Reputation: 255Reputation: 255
On debian, how to run debootstrap offline, without internet access?


Hello,

During TRIP, on my Raspberry PI, Arm notebooks, I need to want to run debootstrap for the same machine.

I am without internet access. Likely is there a method to do so?

armbian, debian raspios...

Thank you and

Kind regards
 
Old 12-25-2023, 08:39 PM   #2
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,150

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
Unless you have a local repository mirror to pull from no it can't be done. Debootstrap works by using a remote repository. If you have a local repo you would call debootstrap as such.

Code:
debootstrap bookworm /mnt http://ip-to-repo/debian
or whatever. I'm assuming it may be able to work off a dvd installer disk mounted by just changing source part but never had a reason to try it.
 
Old 12-30-2023, 11:51 PM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by jmgibson1981 View Post
Unless you have a local repository mirror to pull from no it can't be done. Debootstrap works by using a remote repository. If you have a local repo you would call debootstrap as such.

Code:
debootstrap bookworm /mnt http://ip-to-repo/debian
or whatever. I'm assuming it may be able to work off a dvd installer disk mounted by just changing source part but never had a reason to try it.
With your cache, i.e. /var/cache/apt/archive/, you can build a server for debootstrap, i.e. package list?
 
Old 01-02-2024, 04:45 AM   #4
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by jmgibson1981 View Post
Unless you have a local repository mirror to pull from no it can't be done. Debootstrap works by using a remote repository. If you have a local repo you would call debootstrap as such.

Code:
debootstrap bookworm /mnt http://ip-to-repo/debian
or whatever. I'm assuming it may be able to work off a dvd installer disk mounted by just changing source part but never had a reason to try it.
This is the classic debbotstrap comnand

However how do you setup your server?
 
Old 01-02-2024, 08:59 AM   #5
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,150

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
Easiest way would be to use apt mirror on a local server. Be aware that the entire repo is > 100GB or so. You can choose which sub repositories to keep or not. You need main. You can live without contrib and nonfree. nonfree firmware is a necessity imo but you can probably ignore it as well.
 
  


Reply



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: How To Fully Update And Upgrade Offline Debian-based Systems Using Apt-offline LXer Syndicated Linux News 0 09-20-2022 02:03 PM
"systemd[1]: Failed to mount /run/systemd/cryptsetup/keydev-crypt5" <= boot error after Bullseye (Debian 11) debootstrap installation libCognition Debian 0 05-25-2021 01:48 AM
Installing Debian without systemd using debootstrap method? patrick295767 Debian 29 09-21-2020 09:00 AM
[SOLVED] apt-offline fails to install updates to offline computer with ERROR: Failed to unlink /var/lib/apt/lists/partial/ JoLinuxUser Ubuntu 9 09-12-2019 08:11 AM

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

All times are GMT -5. The time now is 12:02 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