Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback needed

2019-09-13 Thread José Marinho via Dng
For the first point, you are right, the final hyphen makes a big difference and 
now I am free of the dbus delay and can reach a GUI through Lightdm. But the 
other issue persists:
root@dserver:~# apt install --purge policykit-1
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 policykit-1 : Depends: libpolkit-agent-1-0 (= 0.105-25+devuan4) but 0.105-25 
is to be installed
   Depends: libpolkit-backend-1-0 (= 0.105-25+devuan4)
   Depends: libpolkit-gobject-1-0 (= 0.105-25+devuan4)
E: Unable to correct problems, you have held broken packages.

I'm going to post you the output of some commands with the hope it may help you 
to understand:

root@dserver:~# cat /etc/apt/preferences
cat: /etc/apt/preferences: No such file or directory
root@dserver:~# ls -l /etc/apt/preferences.d/
total 0

Like I mentioned on my previous post, the system I'm using for this tests is a 
Virtualbox VM with Debian server installed with a netinstall image and after 
that I install the metapackage task-xfce-desktop, but I did not change any 
preference from the stock that comes from Debian

root@dserver:~# apt policy policykit-1
policykit-1:
  Installed: 0.105-25
  Candidate: 0.105-25+devuan4
  Version table:
 0.105-25+devuan4 500
500 http://pkgmaster.devuan.org/merged beowulf/main amd64 Packages
 *** 0.105-25 100
100 /var/lib/dpkg/status
root@dserver:~# apt policy libpolkit-agent-1-0
libpolkit-agent-1-0:
  Installed: 0.105-25
  Candidate: 0.105-25+devuan4
  Version table:
 0.105-25+devuan4 500
500 http://pkgmaster.devuan.org/merged beowulf/main amd64 Packages
 *** 0.105-25 100
100 /var/lib/dpkg/status

root@dserver:~# apt policy libpolkit-backend-1-0
libpolkit-backend-1-0:
  Installed: 0.105-25
  Candidate: 0.105-25
  Version table:
 *** 0.105-25 500
500 http://pkgmaster.devuan.org/merged beowulf/main amd64 Packages
100 /var/lib/dpkg/status

root@dserver:~# apt policy libpolkit-gobject-1-0
libpolkit-gobject-1-0:
  Installed: 0.105-25
  Candidate: 0.105-25
  Version table:
 *** 0.105-25 500
500 http://pkgmaster.devuan.org/merged beowulf/main amd64 Packages
100 /var/lib/dpkg/status

If you need more info don't hesitate to ask for it.

Thanks

José



> 
> From: Mark Hindley 
> Sent: Tue Sep 10 22:28:06 CEST 2019
> To: José Marinho 
> Cc: devuan developers internal list , Dng 
> 
> Subject: Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback 
> needed
> 
> 
> José,
> 
> Hello. Thanks for this.
> 
> On Tue, Sep 10, 2019 at 09:40:42PM +0200, José Marinho wrote:
> > Hi all,
> > 
> > >From a brand new debian server installation on Virtualbox I install desktop
> > >stuff by installing task-xfce-destop metapackage and try your 
> > >instructions. I
> > >don't know if I miss or misunderstand something. What I got was this:
> > 
> > After installing devuan-keyring, changing apt sources, updating apt sources,
> > editing /var/lib/dpkg/status file for removing systemd-sysv of the end of 
> > the
> > line, do an "apt install --purge sysvinit-core dbus dbus-x11 libnss-systemd"
> 
> Could you check that line. It may just be a typo, but should be
> 
>  apt install --purge sysvinit-core dbus dbus-x11 libnss-systemd-
> 
> with a hyphen at the end. That cured the dbus delays for me.
> 
> > and rebooting the system, when I rebooted I notice that when the system 
> > start
> > after the reboot, it gets stuck on dbus and avahi-daemon delaying init much
> > more than usual. Besides this, it delays too a lot when I try to log in the
> > system by console or ssh. When I finally reach a root console and issue : 
> > "apt
> > install --purge policykit-1" I get this output:
> > 
> > apt install --purge policykit-1
> > Reading package lists... Done
> > Building dependency tree   
> > Reading state information... Done
> > Some packages could not be installed. This may mean that you have
> > requested an impossible situation or if you are using the unstable
> > distribution that some required packages have not yet been created
> > or been moved out of Incoming.
> > The following information may help to resolve the situation:
> > 
> > The following packages have unmet dependencies:
> >  policykit-1 : Depends: libpolkit-agent-1-0 (= 0.105-

Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback needed

2019-09-13 Thread José Marinho via Dng
Finally, I managed to get to Beowulf from Buster by doing what is indicated in 
the text file I send as an attachment.

Hope it would be helpful.

Jose

> 
> From: Mark Hindley 
> Sent: Wed Sep 11 12:08:53 CEST 2019
> To: José Marinho 
> Cc: devuan developers internal list , Dng 
> 
> Subject: Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback 
> needed
> 
> 
> On Wed, Sep 11, 2019 at 10:41:29AM +0200, José Marinho wrote:
> > For the first point, you are right, the final hyphen makes a big difference
> > and now I am free of the dbus delay and can reach a GUI through Lightdm.
> 
> Great!
> 
> > But the other issue persists:
> > root@dserver:~# apt install --purge policykit-1
> > Reading package lists... Done
> > Building dependency tree   
> > Reading state information... Done
> > Some packages could not be installed. This may mean that you have
> > requested an impossible situation or if you are using the unstable
> > distribution that some required packages have not yet been created
> > or been moved out of Incoming.
> > The following information may help to resolve the situation:
> > 
> > The following packages have unmet dependencies:
> >  policykit-1 : Depends: libpolkit-agent-1-0 (= 0.105-25+devuan4) but 
> > 0.105-25 is to be installed
> >Depends: libpolkit-backend-1-0 (= 0.105-25+devuan4)
> >Depends: libpolkit-gobject-1-0 (= 0.105-25+devuan4)
> > E: Unable to correct problems, you have held broken packages.
> 
> I think this is a problem in devuan's task-xfce-desktop.
> 
> We are quite behind debian (buster has 3.53, beowulf has 3.48+devuan1.1) and
> devuan's version also has a (now) unhelpful dependency on
> libpolkit-backend-consolekit-1-0.
> 
> Could you try removing task-xfce-desktop first?
> 
> Thanks.
> 
> Mark


-- 
Sent with https://mailfence.com
Secure and private emailroot@dserver:~# wget 
http://pkgmaster.devuan.org/devuan/pool/main/d/devuan-keyring/devuan-keyring_2017.10.03_all.deb
--2019-09-11 17:39:21--  
http://pkgmaster.devuan.org/devuan/pool/main/d/devuan-keyring/devuan-keyring_2017.10.03_all.deb
Resolving pkgmaster.devuan.org (pkgmaster.devuan.org)... 5.196.38.18
Connecting to pkgmaster.devuan.org (pkgmaster.devuan.org)|5.196.38.18|:80... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 34728 (34K) [application/octet-stream]
Saving to: ‘devuan-keyring_2017.10.03_all.deb’

devuan-keyring_2017 100%[===>]  33.91K  --.-KB/sin 0.06s   

2019-09-11 17:39:37 (607 KB/s) - ‘devuan-keyring_2017.10.03_all.deb’ saved 
[34728/34728]

root@dserver:~# dpkg -i devuan-keyring_2017.10.03_all.deb
Selecting previously unselected package devuan-keyring.
(Reading database ... 104747 files and directories currently installed.)
Preparing to unpack devuan-keyring_2017.10.03_all.deb ...
Unpacking devuan-keyring (2017.10.03) ...
Setting up devuan-keyring (2017.10.03) ...
root@dserver:~# cat > /etc/apt/sources.list < deb http://pkgmaster.devuan.org/merged beowulf main
> deb http://pkgmaster.devuan.org/merged beowulf-security main
> EOF

root@dserver:~# apt update
Get:1 http://pkgmaster.devuan.org/merged beowulf InRelease [25.6 kB]
Get:2 http://pkgmaster.devuan.org/merged beowulf-security InRelease [25.6 kB]
Get:3 http://pkgmaster.devuan.org/merged beowulf/main amd64 Packages [8,046 kB]
Get:4 http://pkgmaster.devuan.org/merged beowulf-security/main amd64 Packages 
[85.5 kB]
Fetched 8,183 kB in 31s (262 kB/s) 
Reading package lists... Done
Building dependency tree   
Reading state information... Done
12 packages can be upgraded. Run 'apt list --upgradable' to see them.

root@dserver:~# apt list --upgradable
Listing... Done
base-files/testing 10.3+devuan3.1 amd64 [upgradable from: 10.3+deb10u1]
dbus-x11/testing 1.12.16-1+devuan2 amd64 [upgradable from: 1.12.16-1]
dbus/testing 1.12.16-1+devuan2 amd64 [upgradable from: 1.12.16-1]
desktop-base/testing 1:0.99 all [upgradable from: 10.0.2]
gir1.2-polkit-1.0/testing 0.105-25+devuan4 amd64 [upgradable from: 0.105-25]
libdbus-1-3/testing 1.12.16-1+devuan2 amd64 [upgradable from: 1.12.16-1]
libpolkit-agent-1-0/testing 0.105-25+devuan4 amd64 [upgradable from: 0.105-25]
libudev1/testing 1:3.2.7+devuan1.1 amd64 [upgradable from: 241-7~deb10u1]
policykit-1/testing 0.105-25+devuan4 amd64 [upgradable from: 0.105-25]
sysvinit-utils/testing 2.93-8+devuan1 amd64 [upgradable from: 2.93-8]
udev/testing 1:3.2.7+devuan1.1 amd64 [upgradable from: 241-7~deb10u1]
upower/testing 1:0.9.23-2+devuan1.3 amd64 [upgradable from: 0.99.10-1]

cp /var/lib/dpkg/status /var/lib/dpkg/status.save
nano /var/lib/dpkg/status

root@dserver:~# apt install --purge sysvinit-core dbus dbus-x11 libnss-systemd-
Reading package li

Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback needed

2019-09-13 Thread José Marinho via Dng
I forgot to mention that after the reboot, after the reboot, in addition to the 
delay in starting dbus and avahi-daemon and the difficulties to login I cannot 
access to the GUI, only by console

> 
> From: José Marinho 
> Sent: Tue Sep 10 21:40:42 CEST 2019
> To: Mark Hindley , devuan developers internal list 
> , Dng 
> Subject: Re: [devuan-dev] [DNG] Migrating from Buster to Beowulf - feedback 
> needed
> 
> 
> Hi all,
> 
> From a brand new debian server installation on Virtualbox I install desktop 
> stuff by installing task-xfce-destop metapackage and try your instructions. I 
> don't know if I miss or misunderstand something. What I got was this:
> 
> After installing devuan-keyring, changing apt sources, updating apt sources, 
> editing /var/lib/dpkg/status file for removing systemd-sysv of the end of the 
> line, do an "apt install --purge sysvinit-core dbus dbus-x11 libnss-systemd" 
> and rebooting the system, when I rebooted I notice that
> when the system start after the reboot, it gets stuck on dbus and 
> avahi-daemon delaying init much more than usual. Besides this, it delays too 
> a lot when I try to log in the system by console or ssh. When I finally reach 
> a root console and issue : "apt install --purge policykit-1" I get this 
> output:
> 
> apt install --purge policykit-1
> Reading package lists... Done
> Building dependency tree   
> Reading state information... Done
> Some packages could not be installed. This may mean that you have
> requested an impossible situation or if you are using the unstable
> distribution that some required packages have not yet been created
> or been moved out of Incoming.
> The following information may help to resolve the situation:
> 
> The following packages have unmet dependencies:
>  policykit-1 : Depends: libpolkit-agent-1-0 (= 0.105-25+devuan4) but 0.105-25 
> is to be installed
>Depends: libpolkit-backend-1-0 (= 0.105-25+devuan4)
>Depends: libpolkit-gobject-1-0 (= 0.105-25+devuan4)
> E: Unable to correct problems, you have held broken packages.
> 
> I hope this will help
> 
> Jose
> 
> > --------------------
> > From: Mark Hindley 
> > Sent: Tue Sep 10 13:59:58 CEST 2019
> > To: devuan developers internal list , Dng 
> > 
> > Subject: Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback 
> > needed
> > 
> > 
> > I have been further testing ways of migrating buster to beowulf.
> > 
> > With a install of xfce4 and lightdm, the cleanest way I can come up with is:
> > 
> > # Migrate from Debian buster to Devuan beowulf
> > 
> > # Install devuan-keyring
> > wget 
> > http://pkgmaster.devuan.org/devuan/pool/main/d/devuan-keyring/devuan-keyring_2017.10.03_all.deb
> > dpkg -i devuan-keyring_2017.10.03_all.deb
> > 
> > # Change APT sources
> > cat > /etc/apt/sources.list < > deb http://pkgmaster.devuan.org/merged beowulf main 
> > deb http://pkgmaster.devuan.org/merged beowulf-security main 
> > EOF
> > 
> > apt update
> > 
> > # If you have libpam-systemd installed this is an optional and very hackish 
> > fix
> > # for Debian #935304 which is now closed with wontfix.
> > #
> > # Don't do this if you are at all unsure.
> > #
> > # 1) Ensure you create a backup!
> > # 2) Open /var/lib/dpkg/status with an editor
> > # 3) Find libpam-systemd Depends. The line looks like
> > # Depends: libc6 (>= 2.28), libpam0g (>= 0.99.7.1), systemd (= 
> > 241-7~deb10u1), libpam-runtime (>= 1.0.1-6), dbus, systemd-sysv
> > # 4) Remove ', systemd-sysv from the end of the line, leaving the rest of 
> > the line intact
> > # 5) Save file
> > cp /var/lib/dpkg/status /var/lib/dpkg/status.save
> > editor /var/lib/dpkg/status
> > 
> > # Install new init and dbus.
> > # Ensure we will have dbus-x11 to provide dbus-session-bus after systemd is 
> > gone.
> > # Remove libnss-systemd to avoid delays on nss lookups after reboot.
> > apt install --purge sysvinit-core dbus dbus-x11 libnss-systemd-
> > 
> > reboot
> > 
> > # If you have policykit-1 installed, update it.
> > # This will also purge systemd* and install libpam-elogind
> > apt install --purge policykit-1
> > 
> > # The rest of the migration (base-files, eudev, etc)
> > # This will also purge sytemd* if not already done.
> > apt --purge full-upgrade
> > 
> > # Optionally, if you didn't edit /var/lib/dpkg/status above
> > # Reinstall whatever desktop and display manager was r

Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback needed

2019-09-13 Thread José Marinho via Dng
Hi all,

From a brand new debian server installation on Virtualbox I install desktop 
stuff by installing task-xfce-destop metapackage and try your instructions. I 
don't know if I miss or misunderstand something. What I got was this:

After installing devuan-keyring, changing apt sources, updating apt sources, 
editing /var/lib/dpkg/status file for removing systemd-sysv of the end of the 
line, do an "apt install --purge sysvinit-core dbus dbus-x11 libnss-systemd" 
and rebooting the system, when I rebooted I notice that
when the system start after the reboot, it gets stuck on dbus and avahi-daemon 
delaying init much more than usual. Besides this, it delays too a lot when I 
try to log in the system by console or ssh. When I finally reach a root console 
and issue : "apt install --purge policykit-1" I get this 
output:

apt install --purge policykit-1
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 policykit-1 : Depends: libpolkit-agent-1-0 (= 0.105-25+devuan4) but 0.105-25 
is to be installed
   Depends: libpolkit-backend-1-0 (= 0.105-25+devuan4)
   Depends: libpolkit-gobject-1-0 (= 0.105-25+devuan4)
E: Unable to correct problems, you have held broken packages.

I hope this will help

Jose

> 
> From: Mark Hindley 
> Sent: Tue Sep 10 13:59:58 CEST 2019
> To: devuan developers internal list , Dng 
> 
> Subject: Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback 
> needed
> 
> 
> I have been further testing ways of migrating buster to beowulf.
> 
> With a install of xfce4 and lightdm, the cleanest way I can come up with is:
> 
> # Migrate from Debian buster to Devuan beowulf
> 
> # Install devuan-keyring
> wget 
> http://pkgmaster.devuan.org/devuan/pool/main/d/devuan-keyring/devuan-keyring_2017.10.03_all.deb
> dpkg -i devuan-keyring_2017.10.03_all.deb
> 
> # Change APT sources
> cat > /etc/apt/sources.list < deb http://pkgmaster.devuan.org/merged beowulf main 
> deb http://pkgmaster.devuan.org/merged beowulf-security main 
> EOF
> 
> apt update
> 
> # If you have libpam-systemd installed this is an optional and very hackish 
> fix
> # for Debian #935304 which is now closed with wontfix.
> #
> # Don't do this if you are at all unsure.
> #
> # 1) Ensure you create a backup!
> # 2) Open /var/lib/dpkg/status with an editor
> # 3) Find libpam-systemd Depends. The line looks like
> # Depends: libc6 (>= 2.28), libpam0g (>= 0.99.7.1), systemd (= 
> 241-7~deb10u1), libpam-runtime (>= 1.0.1-6), dbus, systemd-sysv
> # 4) Remove ', systemd-sysv from the end of the line, leaving the rest of the 
> line intact
> # 5) Save file
> cp /var/lib/dpkg/status /var/lib/dpkg/status.save
> editor /var/lib/dpkg/status
> 
> # Install new init and dbus.
> # Ensure we will have dbus-x11 to provide dbus-session-bus after systemd is 
> gone.
> # Remove libnss-systemd to avoid delays on nss lookups after reboot.
> apt install --purge sysvinit-core dbus dbus-x11 libnss-systemd-
> 
> reboot
> 
> # If you have policykit-1 installed, update it.
> # This will also purge systemd* and install libpam-elogind
> apt install --purge policykit-1
> 
> # The rest of the migration (base-files, eudev, etc)
> # This will also purge sytemd* if not already done.
> apt --purge full-upgrade
> 
> # Optionally, if you didn't edit /var/lib/dpkg/status above
> # Reinstall whatever desktop and display manager was removed
> # apt install xfce4 lightdm
> 
> # Change ens3 to eth0 in /etc/network/interfaces
> sed s/ens3/eth0/ -i /etc/network/interfaces
> 
> reboot
> 
> # Remove cruft
> apt autoremove --purge
> 
> Done!
> 
> The transitional systemd-sysv package I talked about a few days ago to smooth
> over #935304 isn't going to work as I had forgotten that sysvinit-core 
> conflicts
> with systemd-sysv.
> 
> The hack to work around #935304 by editing /var/lib/dpkg/status is not pretty 
> at
> all. If you don't want it you will have to accept removal of some GUI 
> components
> with libpam-systemd and then reinstall them after libpam-elogind is in place.
> 
> I hope the instructions are reasonably clear.
> 
> Do give feedback.
> 
> Thanks
> 
> Mark
> ___
> Dng mailing list
> Dng@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


-- 
Sent with https://mailfence.com
Secure and private email
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback needed

2019-09-11 Thread Mark Hindley
On Wed, Sep 11, 2019 at 06:25:20PM +0200, José Marinho wrote:
> Finally, I managed to get to Beowulf from Buster by doing what is indicated 
> in the text file I send as an attachment.
> 
> Hope it would be helpful.

Yes, thanks. On a quick look all of your difficulties look related to tasksel. I
think the basic process I posted is OK.

Thanks.

Mark
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback needed

2019-09-11 Thread Mark Hindley
On Wed, Sep 11, 2019 at 10:41:29AM +0200, José Marinho wrote:
> For the first point, you are right, the final hyphen makes a big difference
> and now I am free of the dbus delay and can reach a GUI through Lightdm.

Great!

> But the other issue persists:
> root@dserver:~# apt install --purge policykit-1
> Reading package lists... Done
> Building dependency tree   
> Reading state information... Done
> Some packages could not be installed. This may mean that you have
> requested an impossible situation or if you are using the unstable
> distribution that some required packages have not yet been created
> or been moved out of Incoming.
> The following information may help to resolve the situation:
> 
> The following packages have unmet dependencies:
>  policykit-1 : Depends: libpolkit-agent-1-0 (= 0.105-25+devuan4) but 0.105-25 
> is to be installed
>Depends: libpolkit-backend-1-0 (= 0.105-25+devuan4)
>Depends: libpolkit-gobject-1-0 (= 0.105-25+devuan4)
> E: Unable to correct problems, you have held broken packages.

I think this is a problem in devuan's task-xfce-desktop.

We are quite behind debian (buster has 3.53, beowulf has 3.48+devuan1.1) and
devuan's version also has a (now) unhelpful dependency on
libpolkit-backend-consolekit-1-0.

Could you try removing task-xfce-desktop first?

Thanks.

Mark
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback needed

2019-09-10 Thread Mark Hindley
José,

Hello. Thanks for this.

On Tue, Sep 10, 2019 at 09:40:42PM +0200, José Marinho wrote:
> Hi all,
> 
> >From a brand new debian server installation on Virtualbox I install desktop
> >stuff by installing task-xfce-destop metapackage and try your instructions. I
> >don't know if I miss or misunderstand something. What I got was this:
> 
> After installing devuan-keyring, changing apt sources, updating apt sources,
> editing /var/lib/dpkg/status file for removing systemd-sysv of the end of the
> line, do an "apt install --purge sysvinit-core dbus dbus-x11 libnss-systemd"

Could you check that line. It may just be a typo, but should be

 apt install --purge sysvinit-core dbus dbus-x11 libnss-systemd-

with a hyphen at the end. That cured the dbus delays for me.

> and rebooting the system, when I rebooted I notice that when the system start
> after the reboot, it gets stuck on dbus and avahi-daemon delaying init much
> more than usual. Besides this, it delays too a lot when I try to log in the
> system by console or ssh. When I finally reach a root console and issue : "apt
> install --purge policykit-1" I get this output:
> 
> apt install --purge policykit-1
> Reading package lists... Done
> Building dependency tree   
> Reading state information... Done
> Some packages could not be installed. This may mean that you have
> requested an impossible situation or if you are using the unstable
> distribution that some required packages have not yet been created
> or been moved out of Incoming.
> The following information may help to resolve the situation:
> 
> The following packages have unmet dependencies:
>  policykit-1 : Depends: libpolkit-agent-1-0 (= 0.105-25+devuan4) but 0.105-25 
> is to be installed
>Depends: libpolkit-backend-1-0 (= 0.105-25+devuan4)
>Depends: libpolkit-gobject-1-0 (= 0.105-25+devuan4)

This is odd as 0.105-25 is the buster version.

I had tested this from xfce4 install but not the task-xfce4-desktop
metapackage. I will try and see if I can reproduce.

Are there any  held packages or apt pinning in force?

Thanks

Mark
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback needed

2019-09-10 Thread Mark Hindley
On Tue, Sep 10, 2019 at 10:09:12AM -0400, fsmithred via Dng wrote:
> Would a transitional package that makes the edit to /var/lib/dpkg/status be
> a sane solution?

Yes I wondered about that. What would work is a libpam-systemd.deb with Debian
#935304 fixed. But it would be a pain to maintain as we would have to keep the 
versions in
step with the rest of the systemd in buster. We also couldn't have it in the
main devuan archive as we use libpam-elogind to provide libpam-systemd, so it
would have to be a download and manual install.

In the end, I feel it is more appropriate to fix Debian bugs in Debian if we 
can.

Best wishes

Mark
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback needed

2019-09-10 Thread fsmithred via Dng

On 9/10/19 7:59 AM, Mark Hindley wrote:

I have been further testing ways of migrating buster to beowulf.

With a install of xfce4 and lightdm, the cleanest way I can come up with is:

# Migrate from Debian buster to Devuan beowulf

# Install devuan-keyring
wget 
http://pkgmaster.devuan.org/devuan/pool/main/d/devuan-keyring/devuan-keyring_2017.10.03_all.deb
dpkg -i devuan-keyring_2017.10.03_all.deb

# Change APT sources
cat > /etc/apt/sources.list = 2.28), libpam0g (>= 0.99.7.1), systemd (= 241-7~deb10u1), 
libpam-runtime (>= 1.0.1-6), dbus, systemd-sysv
# 4) Remove ', systemd-sysv from the end of the line, leaving the rest of the 
line intact
# 5) Save file
cp /var/lib/dpkg/status /var/lib/dpkg/status.save
editor /var/lib/dpkg/status

# Install new init and dbus.
# Ensure we will have dbus-x11 to provide dbus-session-bus after systemd is 
gone.
# Remove libnss-systemd to avoid delays on nss lookups after reboot.
apt install --purge sysvinit-core dbus dbus-x11 libnss-systemd-

reboot

# If you have policykit-1 installed, update it.
# This will also purge systemd* and install libpam-elogind
apt install --purge policykit-1

# The rest of the migration (base-files, eudev, etc)
# This will also purge sytemd* if not already done.
apt --purge full-upgrade

# Optionally, if you didn't edit /var/lib/dpkg/status above
# Reinstall whatever desktop and display manager was removed
# apt install xfce4 lightdm

# Change ens3 to eth0 in /etc/network/interfaces
sed s/ens3/eth0/ -i /etc/network/interfaces

reboot

# Remove cruft
apt autoremove --purge

Done!

The transitional systemd-sysv package I talked about a few days ago to smooth
over #935304 isn't going to work as I had forgotten that sysvinit-core conflicts
with systemd-sysv.

The hack to work around #935304 by editing /var/lib/dpkg/status is not pretty at
all. If you don't want it you will have to accept removal of some GUI components
with libpam-systemd and then reinstall them after libpam-elogind is in place.

I hope the instructions are reasonably clear.

Do give feedback.

Thanks

Mark


Would a transitional package that makes the edit to /var/lib/dpkg/status 
be a sane solution?


fsmithred

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback needed

2019-09-10 Thread Mark Hindley
I have been further testing ways of migrating buster to beowulf.

With a install of xfce4 and lightdm, the cleanest way I can come up with is:

# Migrate from Debian buster to Devuan beowulf

# Install devuan-keyring
wget 
http://pkgmaster.devuan.org/devuan/pool/main/d/devuan-keyring/devuan-keyring_2017.10.03_all.deb
dpkg -i devuan-keyring_2017.10.03_all.deb

# Change APT sources
cat > /etc/apt/sources.list = 2.28), libpam0g (>= 0.99.7.1), systemd (= 
241-7~deb10u1), libpam-runtime (>= 1.0.1-6), dbus, systemd-sysv
# 4) Remove ', systemd-sysv from the end of the line, leaving the rest of the 
line intact
# 5) Save file
cp /var/lib/dpkg/status /var/lib/dpkg/status.save
editor /var/lib/dpkg/status

# Install new init and dbus.
# Ensure we will have dbus-x11 to provide dbus-session-bus after systemd is 
gone.
# Remove libnss-systemd to avoid delays on nss lookups after reboot.
apt install --purge sysvinit-core dbus dbus-x11 libnss-systemd-

reboot

# If you have policykit-1 installed, update it.
# This will also purge systemd* and install libpam-elogind
apt install --purge policykit-1

# The rest of the migration (base-files, eudev, etc)
# This will also purge sytemd* if not already done.
apt --purge full-upgrade

# Optionally, if you didn't edit /var/lib/dpkg/status above
# Reinstall whatever desktop and display manager was removed
# apt install xfce4 lightdm

# Change ens3 to eth0 in /etc/network/interfaces
sed s/ens3/eth0/ -i /etc/network/interfaces

reboot

# Remove cruft
apt autoremove --purge

Done!

The transitional systemd-sysv package I talked about a few days ago to smooth
over #935304 isn't going to work as I had forgotten that sysvinit-core conflicts
with systemd-sysv.

The hack to work around #935304 by editing /var/lib/dpkg/status is not pretty at
all. If you don't want it you will have to accept removal of some GUI components
with libpam-systemd and then reinstall them after libpam-elogind is in place.

I hope the instructions are reasonably clear.

Do give feedback.

Thanks

Mark
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback needed

2019-09-07 Thread fsmithred via Dng

On 9/7/19 2:26 AM, Mark Hindley wrote:

libpam-systemd depends systemd-sysv. libpam-systemd also depends
systemd. Devuan's libpam-elogind provides libpam-systemd but conflicts with
systemd which must be removed first.

However, to get systemd uninstalled we first have to replace systemd-sysv with
sysvinit-core (leaving systemd installed) and reboot. systemd and elogind
conflict so we cannot use libpam-elogind to replace libpam-systemd *yet*.

This is the point we need a transitional package to temporarily satisfy
libpam-systemd's systemd-sysv dependency whilst the system is rebooted.

After reboot, systemd is no longer PID1 so can be removed and we can then
complete the transition replacing libpam-systemd with libpam-elogind, removing
systemd and installing elogind.

I hope that is clearer.



Kinda, sorta.

I think it's consistent with my experience of migrating buster to beowulf. 
At the time, I was ready to say that it can't be done and we shouldn't 
support it, but I did succeed after two days of messing with it. Nice to 
see you have a way to make it work smoothly.


fsmithred

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback needed

2019-09-07 Thread Mark Hindley
On Sat, Sep 07, 2019 at 11:04:00AM +1200, Daniel Reurich wrote:
> On 07/09/19 07:30, Mark Hindley wrote:
> But it should use libpam-elogind.  Perhaps we need to ban libpam-systemd
> to force the use of libpam-elogind instead.  The only thing is we need
> to check if their is a dep version check on libpam-systemd in which case
> we'd also need to set the version for the "Provides: libpam-systemd" also.

I think that is all covered and works fine once the install process is
done. However, see below:
 
> > So, I am working on a transitional package that could help in devuan to 
> > smooth
> > this out and not require the whole GUI to be removed and reinstalled. The 
> > basic
> > idea is that the transitional package Provides systemd-sysv and Depends
> > sysvinit-core. Installing it temporarily will satisfy libpam-systemd whilst 
> > the
> > system is rebooted without having to uninstall half of the system.
> > 
> I don't think a transitional package is required.

I think it is (if you want to avoid removing and then reinstalling many desktop
packages). There is a dependency loop here we have to break.

libpam-systemd depends systemd-sysv. libpam-systemd also depends
systemd. Devuan's libpam-elogind provides libpam-systemd but conflicts with
systemd which must be removed first.

However, to get systemd uninstalled we first have to replace systemd-sysv with
sysvinit-core (leaving systemd installed) and reboot. systemd and elogind
conflict so we cannot use libpam-elogind to replace libpam-systemd *yet*.

This is the point we need a transitional package to temporarily satisfy
libpam-systemd's systemd-sysv dependency whilst the system is rebooted.

After reboot, systemd is no longer PID1 so can be removed and we can then
complete the transition replacing libpam-systemd with libpam-elogind, removing
systemd and installing elogind.

I hope that is clearer.

Best wishes

Mark
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback needed

2019-09-06 Thread wirelessduck--- via Dng

> I have just had a go in a couple of scenarios using a VM.
> 
> The basic process is:
> 
> 1) Install sysvinit-core (if you don't have it already), remove libnss-systemd
>and reboot.
> 2) Manually download and  install devuan-keyring (wget, dpkg -i).
> 3) change apt sources from buster to beowulf.
> 4) apt update.
> 4) apt full-upgrade or apt-get dist-upgrade.

Should you also be installing the devuan-baseconf package? Or does that get 
pulled in automatically during the transition?

—Tom
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [devuan-dev] Migrating from Buster to Beowulf - feedback needed

2019-09-06 Thread Daniel Reurich
On 07/09/19 07:30, Mark Hindley wrote:
> On Thu, Sep 05, 2019 at 11:27:03PM -0500, goli...@devuan.org wrote:
>> Dear Dev1ers,
>>
>> Many of you have asked how you can help Devuan.  Well, here's an opportunity
>> - especially for those who keep asking when Beowulf will be released!
> 
> I have just had a go in a couple of scenarios using a VM.
> 
> The basic process is:
> 
>  1) Install sysvinit-core (if you don't have it already), remove 
> libnss-systemd
> and reboot.
>  2) Manually download and  install devuan-keyring (wget, dpkg -i).
>  3) change apt sources from buster to beowulf.
>  4) apt update.
>  4) apt full-upgrade or apt-get dist-upgrade.
> 
> The process is not too bad, particularly if you have a very basic
> install. However, the main issue is step 1) if you have anything desktoppy
> installed (lightdm, xfce). Debian's libpam-systemd unhelpfully depends on
> systemd-sysv which in turn conflicts with sysvinit-core. So, by installing
> sysvinit-core the whole chain systemd-sysv -> libpam-systemd -> policykit ->
> desktop gets more or less removed. Of course it could all be reinstalled 
> later,
> but that is understandably probably too much for most users.

But it should use libpam-elogind.  Perhaps we need to ban libpam-systemd
to force the use of libpam-elogind instead.  The only thing is we need
to check if their is a dep version check on libpam-systemd in which case
we'd also need to set the version for the "Provides: libpam-systemd" also.
> 
> I have already submitted #935304 which is being ignored and may well not be
> fixed in bullseye. Sigh!
> 
> In the report I point out that  libpam-systemd depending on systemd-sysv 
> doesn't mean
> systemd will always be PID 1, which is (I think) the intention of it.
> 
Lets see if their is a response.  If there is nothing in a week I may
prod the DPL again.  He was very impressed with your professionalism in
the case of justifying the elogind bug.

> So, I am working on a transitional package that could help in devuan to smooth
> this out and not require the whole GUI to be removed and reinstalled. The 
> basic
> idea is that the transitional package Provides systemd-sysv and Depends
> sysvinit-core. Installing it temporarily will satisfy libpam-systemd whilst 
> the
> system is rebooted without having to uninstall half of the system.
> 
I don't think a transitional package is required.

Thanks for testing this,

Daniel.

-- 
Daniel Reurich
Centurion Computer Technology (2005) Ltd.
021 797 722



signature.asc
Description: OpenPGP digital signature
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng