Forum
Debian stretch - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Others (/forum-24.html)
+--- Thread: Debian stretch (/thread-3914.html)



Debian stretch - naox - 19th Jun, 2017 02:10 AM

Hello,

Since Debian Stretch was released yesterday (https://wiki.debian.org/DebianStretch) Can/sould we upgrade to the new version or xbian packages should be adapted before?

Thanks!


RE: Debian stretch - Nachteule - 19th Jun, 2017 06:27 AM

XBian is ready for Stretch since months and binary packages are build for Jessie and Stretch.

So, if you want to upgrade to Stretch, you can do this manually (by editing /etc/apt/sources.list and /etc/apt/sources.list.d/xbian.list) or wait a bit more until final package for upgrade (xbian-package-repo) will be released. There will be an additional selection in xbian-config GUI, category Update for upgrading to Stretch Smile


RE: Debian stretch - gizag - 4th Sep, 2017 08:16 AM

fair warning to all: the current way xbian does mirror selection breaks apt 1.4 (the new apt used in stretch)

I've spend more than 1 headbreaking hour trying to fix the issue (being misdirected due to it being similar to an old bug reported elsewhere)

The following workaround works:
edit /etc/apt/sources.list.d/xbian.list and change the mirror:// part into http:// (httpS might work, not tested) and remove the mirror.txt at the end.
Or better, to not overload the server, open the mirror.txt file in your browser and randomly choose a mirror and copy the url in the right place.


RE: Debian stretch - Nachteule - 4th Sep, 2017 08:41 AM

(4th Sep, 2017 08:16 AM)gizag Wrote:  fair warning to all: the current way xbian does mirror selection breaks apt 1.4 (the new apt used in stretch)

I've spend more than 1 headbreaking hour trying to fix the issue (being misdirected due to it being similar to an old bug reported elsewhere)

The following workaround works:
edit /etc/apt/sources.list.d/xbian.list and change the mirror:// part into http:// (httpS might work, not tested) and remove the mirror.txt at the end.
Or better, to not overload the server, open the mirror.txt file in your browser and randomly choose a mirror and copy the url in the right place.

Thanks for you note, but the installer script of package xbian-package-repo does this automatically Smile


RE: Debian stretch - gizag - 4th Sep, 2017 09:19 AM

(4th Sep, 2017 08:41 AM)Nachteule Wrote:  
(4th Sep, 2017 08:16 AM)gizag Wrote:  fair warning to all: the current way xbian does mirror selection breaks apt 1.4 (the new apt used in stretch)

I've spend more than 1 headbreaking hour trying to fix the issue (being misdirected due to it being similar to an old bug reported elsewhere)

The following workaround works:
edit /etc/apt/sources.list.d/xbian.list and change the mirror:// part into http:// (httpS might work, not tested) and remove the mirror.txt at the end.
Or better, to not overload the server, open the mirror.txt file in your browser and randomly choose a mirror and copy the url in the right place.

Thanks for you note, but the installer script of package xbian-package-repo does this automatically Smile
great Smile I guess I was either unlucky in timing or it was due to manually switching Wink


-edit-
welll, either I'm doing something terribly wrong, or the script doesnt work Wink
To test I removed xbian-package-repo, purged it's config files and then reinstalled it using apt to make sure it triggers its config files.
This results in
/etc/apt/sources.list.d/xbian.list getting created with the following content:
deb mirror://apt.xbian.org/mirror.txt stable main rpi2-stretch
### deb mirror://apt.xbian.org/mirror.txt staging main rpi2-stretch
### deb mirror://apt.xbian.org/mirror.txt devel main rpi2-stretch


Running apt-get update afterwards results in a segfault:
root@xbian:/mediamap/dump# apt-get update
Reading package lists... Done
E: Method mirror has died unexpectedly!
E: Sub-process mirror received a segmentation fault.


This is due to apt 1.4 not understanding the mirror:// section in the config file, switching that out for http:// and removing mirror.txt fixes apt.


RE: Debian stretch - Nachteule - 4th Sep, 2017 07:01 PM

@gizag

Ok, seems I have to explain a bit more:

1) xbian-package-repo supplies a helper script (/usr/local/sbin/xbian-update-repo) which modifies sources.list and xbian.list. This script is only installed if system is still running under Debian Jessie
2) xbian-config GUI checks if this script is present and if not already running Stretch, it opens a message box to indicate a Distribution upgrade is available
3) In that case, xbian-config GUI has a new function in category Update, which starts Distribution upgrade
4) When you start this operation, above script will be called, and after that a apt-get dist-upgrade will be executed
5) after a successfully upgrade, this helper script is not longer needed and will be removed