On 01/03/2019 05:07 PM, gone wrote:

On 1/3/19 10:45 PM, Chris Laprise wrote:
On 01/03/2019 03:40 PM, gone wrote:
On 1/3/19 12:50 AM, unman wrote:
On Wed, Jan 02, 2019 at 05:08:50PM +0100, gone wrote:

On 1/1/19 10:19 PM, Chris Laprise wrote:
On 01/01/2019 02:37 PM, gone wrote:
Hello, 1st of all, I want to thank all the developers and supporters
for that great stuff called Qubes OS. My first question here after
some hard time of setting up version 4.0, updating it step by step
and studying is the following:

I have a debian-9 template running and for some application to get
installed on it I need Python with Version >= 3.6 as a prerequisite.

Since the preinstalled versions in debian-9 are 2.7 and 3.5 I
attempted to install version 3.6.4 from source as described at
https://www.rosehosting.com/blog/how-to-install-python-3-6-4-on-debian-9/
in order not to run into problems with incompatibilities when
switching to another repo.

Installing the build tools with "sudo apt-get install -y ..." worked
fine but the next step, downloading the source file, with

"wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz";

brings "... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘www.python.org’ "

As I am neither an expert nor an experienced from-source-installer I
need some help and hope to get it here. Thanks very much in advance
and all the best for 2019.


Installing from Debian testing is much easier and it has Python 3.7.
Just set the default release as in the following link, then add a line
for "testing" in your /etc/apt/sources.list (and then 'apt update'):

https://www.debian.org/doc/manuals/apt-howto/ch-apt-get.en.html#s-default-version


Thanks Chris for the explanation. Yes, it may be easier to change to the testing repo, but in general I would like to stay on the stable path with that template. Switching to the testing repo and 'apt update' would probably cause trouble with other software running smoothly so far. Or can I use that
only for python install and then fall back?

If you follow the instructions that Chris linked to you should be fine.
apt update just updates the list of available packages. It doesn't in
itself do anything more.

By setting the default release to stable, you ensure that you wont be
"accidentally" installing stuff from testing. That will only happen if
you explicitly specify the testing repo:
apt-get -t testing install foo

I'd strongly recommend aptitude, which does an excellent job of dealing
with  packages from different releases, and allows you to explicilt
choose the version you want. It also lets you review in detail what the
consequnces will be , so you are always able to roll back.

And, of course, with Qubes it's trivial to clone the template, try out
your proposed update from testing, and make sure that everything works
fine before you commit your precious qubes to use the new template.

OK, I've done setting the default version to "testing" in the newly created /etc/apt/apt.conf but for the additional line in the sources.list I'm not sure, what really is to do.

I've tried it with

"deb http://deb.debian.org/debian stretch testing contrib non-free"

but that seems to be wrong, as I get the following output in the terminal:

user@debian-9:~$ sudo apt update
Hit:1 http://deb.qubes-os.org/r4.0/vm stretch InRelease
Hit:2 http://security-cdn.debian.org stretch/updates InRelease
Ign:3 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:10 W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:10 W: Target Translations (contrib/i18n/Translat.....and several more lines with W: at the beginning.

Sorry but I'm absolutely not familiar with that, although it's pretty interesting.

@unman: As soon as it will have worked this way I promise to try aptitude next ;-) .


The relevant advice here is "set the default release as in the following link...". Not set default release to testing! In this case it should be set to stretch because that's the Debian release you're using.

You should add testing only as an additional line in sources.list:
deb http://deb.debian.org/debian testing main


Oh sorry, Chris, I reported wrong. The default in apt.conf is correctly set to stable.

Thank you for the correct line to put in sources.list.

FWIW, the debian page isn't terribly clear about it. Also, I believe that if you set the default to "stable" instead of the more specific "stretch", the system could try to upgrade everything when buster (v10) becomes the new stable (though I'm not sure if it would get anywhere with no matching reference in sources.list).

--

Chris Laprise, tas...@posteo.net
https://github.com/tasket
https://twitter.com/ttaskett
PGP: BEE2 20C5 356E 764A 73EB  4AB3 1DC4 D106 F07F 1886

--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/484ec5b5-2669-05e9-e45b-e87ad023a0e8%40posteo.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to