[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: could not resolve deb.debian.org after installing via debian live image



Hi,

I think there must be a way to use the live image a s source for the apt installations, instead of the internet...

I will post a new question with this title and see if anyone knows...

Thanks again!
Tamar

‫בתאריך יום ב׳, 3 בפבר׳ 2020 ב-2:09 מאת ‪Daryl‬‏ <‪lists@soldmydata.online‬‏>:‬
On Sun, 02 Feb 2020 15:27:49 -0800
"Rick Thomas" <rick.thomas@pobox.com> wrote:

> I'm not sure myself, but maybe somebody on the list knows?
>
> Anybody know what's the procedure for adding a local disk as a repo?
>
> Thanks in advance!
>
> On Sun, Feb 2, 2020, at 4:15 AM, Tamar Nirenberg wrote:
> > Hi Rick,
> >
> > Thank you for your answer.
> >
> > The sources file contains only these lines, no reference to the
> > live installer image:
> >
> > $ cat sources.list 
>
> > # See https://wiki.debian.org/SourcesList for more information. 
>
> > deb http://deb.debian.org/debian buster main 
>
> > deb-src http://deb.debian.org/debian buster main 
>
> >   
>
> > deb http://deb.debian.org/debian buster-updates main 
>
> > deb-src http://deb.debian.org/debian buster-updates main 
>
> >   
>
> > deb http://security.debian.org/debian-security/ buster/updates
> > main 
>
> > deb-src http://security.debian.org/debian-security/ buster/updates
> > main 
>
> >
> >
> > Do you know how I can add the USB mount (i did not use a DVD, but a
> > USB stick) as a source for the apt install?
> >
> > Thanks,
> > Tamar
> >
> >
> > ‫בתאריך יום א׳, 2 בפבר׳ 2020 ב-13:45 מאת ‪Rick Thomas‬‏
> > <‪rick.thomas@pobox.com‬‏>:‬ 
> >> __
> >> Hi Tamar,
> >>
> >> I think your problem is that the box is not connected to the
> >> internet. The sources.list file left by the install process
> >> assumes you will be connected.
> >>
> >> So take a look at /etc/apt/sources.list and comment out the lines
> >> that refer to internet sites such as deb.debian.org, Then
> >> un-comment the line(s) that refer(s) to the live installer image.
> >> Then make sure the DVD is in the drive and mounted. You should now
> >> be able to install packages from the DVD.
> >>
> >> Good luck!
> >> Rick
> >>
> >> On Sun, Feb 2, 2020, at 3:13 AM, Tamar Nirenberg wrote: 
> >>> Hi,
> >>>
> >>> I installed Debian 10 on a new server using live
> >>> image:debian-live-10.2.0-amd64-gnome.iso The box is not connected
> >>> to the internet. 
>
> >>> Installation ended successfully, but now when I try to install
> >>> open-ssh I get an error saying "could not resolve
> >>> deb.debian.org"   
>
> >>>   
>
> >>   

This is cross posted over to debian-live.

What you typically would do here is use apt-cdrom add

It will ask you for a CD/DVD which it will scan and add an entry to
your /etc/apt/sources.list

In the future if you want a package:

apt install foo

will tell you what DVD or CD you need to insert. Works the same for
dependencies and you might need to switch out the DVD's a time or two
depending on what is required.

If you want to do this without DVD's you would need to sync a repo to a
machine on your LAN and configure a webserver to hand out the files.


Reply to: