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

2020-02-03 Thread Curt
On 2020-02-03, Thomas Schmitt  wrote:
> Hi,
>
> Tamar Nirenberg's apt-get wrote:
>> > Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get
>> >  update cannot be used to add new CD-ROMs
>
> Curt wrote:
>> Is that what he did (use apt-cdrom) to add the local repository?
>
> Dunno. But that was a red herring caused by the "deb cdrom:" line.
> Needed is "deb file:" because the (pseudo-)repository is accessible as
> directory in a mounted filesystem on USB stick.
>

I thought he installed his OS from the
debian-live-10.2.0-amd64-gnome.iso sitting on a usb stick.

I'm uncertain why, for example
 
 apt-cdrom -d /usbmountpoint/ add

would not be operational here (if the appropriate /etc/fstab entry
exists).

That is, if live cd repositories work the same way as regular old cd
repositories.

-- 
"J'ai pour me guérir du jugement des autres toute la distance qui me sépare de
moi." Antonin Artaud




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

2020-02-03 Thread Brian
On Mon 03 Feb 2020 at 16:30:25 -, Curt wrote:

> On 2020-02-03, Brian  wrote:
> >  
> >> Aren't any sources.list experts present who could keep me from guessing
> >> around ?
> >
> > You are doing ok without us so-called experts.
> >
> 
>  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get
>  update cannot be used to add new CD-ROMs
> 
> was the error message he received earlier (amongst others).
> 
> Is that what he did (use apt-cdrom) to add the local repository? I can't
> find that critical detail somehow in the thread.

No, Tamar Nirenberg did not add a cdrom://... line in his sources.list.
Note the date that goes with it - 2019-11-16T10:36. It would have been
added and commented out by the installer. He has uncommented it. This
has not led to the outcome he desired but, as I said, it makes the
screen output more complicated than it need be. My procedure, when
testing a sources.list, is to have only a single operative line.

-- 
Brian.



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

2020-02-03 Thread Thomas Schmitt
Hi,

Tamar Nirenberg's apt-get wrote:
> > Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get
> >  update cannot be used to add new CD-ROMs

Curt wrote:
> Is that what he did (use apt-cdrom) to add the local repository?

Dunno. But that was a red herring caused by the "deb cdrom:" line.
Needed is "deb file:" because the (pseudo-)repository is accessible as
directory in a mounted filesystem on USB stick.

We seem to have found the solution in

  deb [trusted=yes] file:...parent.directory.of.dist.and.pool...

as Brian confirms.
But only to recognize that the desired .deb package is not in the ISO.
Whether it makes sense to install the .udeb against the warning would
have to be tested, if obtaining a pool with the .deb is not an option.


Have a nice day :)

Thomas



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

2020-02-03 Thread Curt
On 2020-02-03, Brian  wrote:
>  
>> Aren't any sources.list experts present who could keep me from guessing
>> around ?
>
> You are doing ok without us so-called experts.
>

 Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get
 update cannot be used to add new CD-ROMs

was the error message he received earlier (amongst others).

Is that what he did (use apt-cdrom) to add the local repository? I can't
find that critical detail somehow in the thread.

-- 
"J'ai pour me guérir du jugement des autres toute la distance qui me sépare de
moi." Antonin Artaud




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

2020-02-03 Thread Brian
On Mon 03 Feb 2020 at 10:00:23 +0100, Thomas Schmitt wrote:

> Hi,
> 
> Tamar Nirenberg's apt-get wrote:
> > Err:3 cdrom://[Official Debian GNU/Linux Live 10.2.0 gnome 2019-11-16T10:36]
> > buster Release
> > Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update
> > cannot be used to add new CD-ROMs
> > [...]
> > E: The repository 'cdrom://[Official Debian GNU/Linux Live 10.2.0 gnome
> > 2019-11-16T10:36] buster Release' does not have a Release file.
> 
> Do you have "deb cdrom:" lines in your sources.list ?
> If so, comment them out and try whether these complaints vanish.

The complaints will probably not vanish but commenting this source out
makes it easier to interpret the output of 'apt update'.
 
> > E: The repository 'file:/media/deploy/UUI buster Release' is not signed.
> > N: Updating from such a repository can't be done securely, and is therefore
> > disabled by default.
> > N: See apt-secure(8) manpage for repository creation and user configuration
> > details.

I get that without [trusted=yes].

> I understand that apt-secure can be used to create a signed repo.
> I assume that you'd have to copy the ./dist and ./pool trees to a writable
> filesystem before producing the signature.

This route very much complicates matters, IMO.

> But the internet proposes as quick workaround in sources.list:
> 
>   deb [trusted=yes] file:/media/deploy/UUI buster main
 
> (documented in man sources.list)

Works for me.

> -
> 
> Aren't any sources.list experts present who could keep me from guessing
> around ?

You are doing ok without us so-called experts.

-- 
Brian.



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

2020-02-03 Thread Thomas Schmitt
Hi,

(where are the DDs when Debian has to be explained ?)

Tamar Nirenberg wrote:
> root@deploy-pc:~# apt-get install openssh-server
> E: Unable to locate package openssh-server
> I see in debian-live-10.2.0-amd64-gnome.contents [cdimage.debian.org] these:
> /pool/main/o/openssh/openssh-server-udeb_7.9p1-10+deb10u1_amd64.udeb

Moan. This is openssh-server-udeb, not openssh-server.

  https://packages.debian.org/unstable/openssh-server-udeb
says
  Warning: This package is intended for the use in building debian-installer
  images only. Do not install it on a normal Debian system.

  https://packages.debian.org/unstable/openssh-server
says
  This package provides the sshd server.
But it is not in the Live ISO's pool.
(wc counts 435 .udeb and 45 .deb in the pool. So it seems not to be
 intended as repository.)


You will need to get some larger pool and put it on USB stick.
Let us search:

  https://cdimage-search.debian.org/
  [v] "release (The most recent release of Debian, currently 10.2.0)"
  (*) "exact filename search (faster); shell globs (*,?) are permitted"
  openssh-server*amd64*

yields:

 1. openssh-server-udeb_7.9p1-10+deb10u1_amd64.udeb appears in:
...
 2. openssh-server_7.9p1-10+deb10u1_amd64.deb appears in:
debian-10.2.0-amd64-STICK16GB-1 (list.gz | jigdo | iso)
debian-10.2.0-amd64-BD-1 (list.gz | jigdo | iso)
debian-edu-10.2.0-amd64-BD-1 (list.gz | jigdo | iso)
debian-10.2.0-amd64-netinst (list.gz | jigdo | iso)
debian-10.2.0-amd64-xfce-CD-1 (list.gz | jigdo | iso)
debian-edu-10.2.0-amd64-netinst (list.gz | jigdo | iso)
debian-mac-10.2.0-amd64-netinst (list.gz | jigdo | iso)
debian-10.2.0-amd64-DLBD-1 (list.gz | jigdo | iso)
debian-10.2.0-amd64-DVD-1 (list.gz | jigdo | iso)
debian-update-10.2.0-amd64-DVD-2 (list.gz | jigdo | iso)
debian-10.2.0-amd64-i386-netinst (list.gz | jigdo | iso)

Depending on the size of the available USB stick, i'd download and dd to
the stick (or to a partition of it, or into a filesystem in a partition) :
  debian-10.2.0-amd64-DLBD-1   (~ 50 GB)
  debian-10.2.0-amd64-BD-1 (~ 25 GB)
  debian-10.2.0-amd64-STICK16GB-1  (guess from name)
  debian-10.2.0-amd64-DVD-1(~  4 GB)
  debian-10.2.0-amd64-netinst  (~  0.35 GB)
Then adapt sources.list to use the mounted ISO on the stick (mounted as
the whole stick device, partition, or file in its mounted host filesystem).


Have a nice day :)

Thomas



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

2020-02-03 Thread Thomas Schmitt
Hi,

urm, looking again at

  N: Download is performed unsandboxed as root as file
  '/media/deploy/UUI/dists/buster/InRelease' couldn't be accessed by user
  '_apt'. - pkgAcquire::Run (13: Permission denied)

i wonder whether it did simply work fine as root.

"N:" is probably the prefix for a note which reports some peculiarity
but not a real problem. The story would be that the superuser could not
do the work after downgrading itself to "_apt" and thus had to work
by its own superpowers.

In the failure messages of "apt-get install" we see "E:" as prefix.
I guess that means "error". But i find no explanation of these markers
anywhere in man dpkg-deb, dpkg, apt, apt-get.
Probably it is lintian style
  https://www.debian.org/doc/manuals/maint-guide/checkit.en.html#lintians

Whatever, try whether you now can install openssh-server.


Tamar Nirenberg wrote:
> https://www.mail-archive.com/debian-user@lists.debian.org/msg740814.html

That's obviously a typical example of branching unrelated discussions
from an originally interesting technical question.
Maybe we can present an answer after some more struggle.


Have a nice day :)

Thomas



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

2020-02-03 Thread Thomas Schmitt
Hi,

Tamar Nirenberg wrote:
> root@deploy-pc:/etc/apt# apt-get update
> [...]
> N: Download is performed unsandboxed as root as file
> '/media/deploy/UUI/dists/buster/InRelease' couldn't be accessed by user
> '_apt'. - pkgAcquire::Run (13: Permission denied)

First i would try to find out what is the permission problem with
the directories and file name of path
  /media/deploy/UUI/dists/buster/InRelease

Especially i wonder about "user '_apt'".
Doesn't the "#" in your shell prompt indicate that you are superuser ?

I also wonder why apt-get complains when there is no file
/dists/buster/InRelease in the ISO filesystem.
Do you see a file
  /media/deploy/UUI/dists/buster/InRelease
?


> Do you think I have to copy , as you suggested, the /media/deploy/UUI/pool
> and /media/deploy/UUI/dists to another location?

That could be worth a try.
  https://wiki.debian.org/DebianRepository/Format
looks like InRelease is looked for if there is no Release.gpg.
You would probably get a Release.gpg file from what is described in the
"ARCHIVE CONFIGURATION" chapter of man apt-secure.

But i wonder for what "[trusted=yes]" is good, if it does not avoid the
need for an InRelease or Release.gpg file.


Have a nice day :)

Thomas



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

2020-02-03 Thread Thomas Schmitt
Hi,

Tamar Nirenberg's apt-get wrote:
> Err:3 cdrom://[Official Debian GNU/Linux Live 10.2.0 gnome 2019-11-16T10:36]
> buster Release
> Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update
> cannot be used to add new CD-ROMs
> [...]
> E: The repository 'cdrom://[Official Debian GNU/Linux Live 10.2.0 gnome
> 2019-11-16T10:36] buster Release' does not have a Release file.

Do you have "deb cdrom:" lines in your sources.list ?
If so, comment them out and try whether these complaints vanish.


> E: The repository 'file:/media/deploy/UUI buster Release' is not signed.
> N: Updating from such a repository can't be done securely, and is therefore
> disabled by default.
> N: See apt-secure(8) manpage for repository creation and user configuration
> details.

I understand that apt-secure can be used to create a signed repo.
I assume that you'd have to copy the ./dist and ./pool trees to a writable
filesystem before producing the signature.

But the internet proposes as quick workaround in sources.list:

  deb [trusted=yes] file:/media/deploy/UUI buster main

(documented in man sources.list)

-

Aren't any sources.list experts present who could keep me from guessing
around ?


Have a nice day :)

Thomas



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

2020-02-03 Thread Tamar Nirenberg
Hi Thomas,

Thanks for your reply.

I tried to put this in sources.list:

deb file:/media/deploy/UUI buster main

--Where /media/deploy/UUI is the mount for the USB stick

Running apt-get update, I get this:

root@deploy-pc:~# apt-get update
Get:1 file:/media/deploy/UUI buster InRelease
Ign:2 cdrom://[Official Debian GNU/Linux Live 10.2.0 gnome
2019-11-16T10:36] buster InRelease
Ign:1 file:/media/deploy/UUI buster InRelease
Err:3 cdrom://[Official Debian GNU/Linux Live 10.2.0 gnome
2019-11-16T10:36] buster Release
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get
update cannot be used to add new CD-ROMs
Get:4 file:/media/deploy/UUI buster Release [1,130 B]
Get:4 file:/media/deploy/UUI buster Release [1,130 B]
Get:5 file:/media/deploy/UUI buster Release.gpg
Ign:5 file:/media/deploy/UUI buster Release.gpg
Reading package lists... Done
N: Download is performed unsandboxed as root as file
'/media/deploy/UUI/dists/buster/InRelease' couldn't be accessed by user
'_apt'. - pkgAcquire::Run (13: Permission denied)
E: The repository 'cdrom://[Official Debian GNU/Linux Live 10.2.0 gnome
2019-11-16T10:36] buster Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore
disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration
details.
E: The repository 'file:/media/deploy/UUI buster Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore
disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration
details.

Thanks,
Tamar


‫בתאריך יום ב׳, 3 בפבר׳ 2020 ב-10:18 מאת ‪Thomas Schmitt‬‏ <‪
scdbac...@gmx.net‬‏>:‬

> Hi,
>
> Rick Thomas wrote:
> > Anybody know what's the procedure for adding a local disk as a repo?
>
> I had hoped for other, more experienced self-admins to care for Tamar's
> questions. My theories about "deb file:..." in sources.list are below.
>
>
> Tamar Nirenberg's apt-get wrote:
> > openssh-server openssh-sftp-server
> > [...]
> > Could not resolve 'deb.debian.org [deb.debian.org]'
> > [...]
> > E: Unable to fetch some archives, maybe run apt-get update or try with
> > --fix-missing?
>
> If the ISO would be on DVD, i'd try what
>   man sources.list
> says about "URI SPECIFICATION" with type "cdrom".
>
> Since the ISO is on a USB stick, then i'd try type "file". I understand
> that the path after "file:" should point to the directory with
> subdirectories ./dist and ./pool . That would be the root directory o
> the mounted ISO on the stick.
> The squashfs seems to contain no pool.
>
> Assumed that the Live ISO is mounted at /mnt/liveiso i'd try:
>
>   deb file:/mnt/liveiso buster main
>
>
> Have a nice day :)
>
> Thomas
>
>


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

2020-02-03 Thread Tamar Nirenberg
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"  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.tho...@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.
>
>


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

2020-02-03 Thread Thomas Schmitt
Hi,

Rick Thomas wrote:
> Anybody know what's the procedure for adding a local disk as a repo?

I had hoped for other, more experienced self-admins to care for Tamar's
questions. My theories about "deb file:..." in sources.list are below.


Tamar Nirenberg's apt-get wrote:
> openssh-server openssh-sftp-server
> [...]
> Could not resolve 'deb.debian.org [deb.debian.org]'
> [...]
> E: Unable to fetch some archives, maybe run apt-get update or try with
> --fix-missing?

If the ISO would be on DVD, i'd try what
  man sources.list
says about "URI SPECIFICATION" with type "cdrom".

Since the ISO is on a USB stick, then i'd try type "file". I understand
that the path after "file:" should point to the directory with
subdirectories ./dist and ./pool . That would be the root directory o
the mounted ISO on the stick.
The squashfs seems to contain no pool.

Assumed that the Live ISO is mounted at /mnt/liveiso i'd try:

  deb file:/mnt/liveiso buster main


Have a nice day :)

Thomas



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

2020-02-02 Thread Daryl
On Sun, 02 Feb 2020 15:27:49 -0800
"Rick Thomas"  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.tho...@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.



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

2020-02-02 Thread Rick Thomas
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.tho...@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" 

>>> 

>> 


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

2020-02-02 Thread Rick Thomas
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" 

> 



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

2020-02-02 Thread Tamar Nirenberg
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 the error:

$ apt-get install openssh-server

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following additional packages will be installed:

openssh-sftp-server

Suggested packages:

molly-guard monkeysphere rssh ssh-askpass ufw

The following NEW packages will be installed:

openssh-server openssh-sftp-server

0 upgraded, 2 newly installed, 0 to remove and 93 not upgraded.

Need to get 396 kB of archives.

After this operation, 1,609 kB of additional disk space will be used.

Do you want to continue? [Y/n] y

Ign:1 http://deb.debian.org/debian buster/main amd64 openssh-sftp-server
amd64 1:7.9p1-10+deb10u1

Ign:2 http://deb.debian.org/debian buster/main amd64 openssh-server amd64
1:7.9p1-10+deb10u1

Err:1 http://deb.debian.org/debian buster/main amd64 openssh-sftp-server
amd64 1:7.9p1-10+deb10u1

Could not resolve 'deb.debian.org'

Err:2 http://deb.debian.org/debian buster/main amd64 openssh-server amd64
1:7.9p1-10+deb10u1

Could not resolve 'deb.debian.org'

E: Failed to fetch
http://security.debian.org/debian-security/pool/updates/main/o/openssh/openssh-sftp-server_7.9p1-10+deb10u1_amd64.deb
Could not resolve 'deb.debian.org'

E: Failed to fetch
http://security.debian.org/debian-security/pool/updates/main/o/openssh/openssh-server_7.9p1-10+deb10u1_amd64.deb
Could not resolve 'deb.debian.org'

E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?

The debian-live-10.2.0-amd64-gnome.contents does include this:
/pool/main/o/openssh

Am I missing something?

Thanks,
Tamar N.

‫בתאריך יום א׳, 2 בפבר׳ 2020 ב-13:10 מאת ‪SmartList‬‏ <‪
debian-user-requ...@lists.debian.org‬‏>:‬

> You have added to the subscriber list of:
>
> debian-user@lists.debian.org
>
> the following mail address:
>
> tamarn...@gmail.com
>
> By default, copies of your own submissions will be returned.
>
> For more information about Debian mailing lists
> (such as the code of conduct), please see
> https://www.debian.org/MailingLists/
>
> In particular, please note that our mailing lists are public forums -- all
> mails sent to them will be archived publically, you may not post
> copyrighted
> texts without a license etc.
> See https://www.debian.org/MailingLists/disclaimer for more information.
>
> To unsubscribe from this list, send "unsubscribe" in the message subject
> to:
> -requ...@lists.debian.org
> and you will be removed after your confirmation reply has been received.
>
> If the wrong address has been subscribed and you seem to be unable to fix
> it yourself, please forward this whole message to
> listmas...@lists.debian.org
> You can and should add any comments you see fit, but keep the full quote
> so that it is possible to diagnose the error.
>
> To post a message onto the mailing list, please send your email to
> @lists.debian.org. Please ensure that -request is not present
> in the
> address you are emailing or you will reach the control bot rather than the
> list.
>
> Please DO NOT reply to this particular e-mail. Send a new message
> addressed to listmas...@lists.debian.org instead, if you must.
>
> Transcript of the subscription request follows:
> --
> >From tamarn...@gmail.com  Sun Feb  2 11:10:37 2020
> >Return-Path: 
> >X-Original-To: lists-debian-user-requ...@bendel.debian.org
> >Delivered-To: lists-debian-user-requ...@bendel.debian.org
> >Received: from localhost (localhost [127.0.0.1])
> >   by bendel.debian.org (Postfix) with ESMTP id 31A05203AC
> >   for ; Sun,  2 Feb
> 2020 11:10:37 + (UTC)
> >X-Virus-Scanned: at lists.debian.org with policy bank request
> >X-Spam-Flag: NO
> >X-Spam-Score: 5.052
> >X-Spam-Level: *
> >X-Spam-Status: No, score=5.052 tagged_above=-1 required=5.3
> >   tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
> >   DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, EMPTY_BODY=3,
> >   FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
> HTML_MESSAGE=2,
> >   PYZOR_CHECK=2, RCVD_IN_DNSWL_NONE=-0.0001, SUBENDNUM=2,
> >   SUBSCONFIRM=-2, TVD_SPACE_RATIO=0.001] autolearn=no
> autolearn_force=no
> >Received: from bendel.debian.org ([127.0.0.1])
> >   by localhost (lists.debian.org [127.0.0.1]) (amavisd-new, port
> 2525)
> >   with ESMTP id di5PL4wHfkQz
> >   for ;
> >   Sun,  2 Feb 2020 11:10:35 + (UTC)
> >X-policyd-weight: using cached result; rate: -5.5
> >Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com
> [IPv6:2a00:1450:4864:20::432])
> >   (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
> >key-exchange X25519 server-signature RSA-PSS (2048 bits)
> server-digest SHA256
> >client-signature RSA-PSS (2048