On 170705-10:25+0100, KatolaZ wrote:
> On Wed, Jul 05, 2017 at 04:15:11AM +0000, Miroslav Rovis wrote:
>
> [cut]
>
> > The following packages have unmet dependencies:
> > build-essential : Depends: libc6-dev but it is not going to be installed or
> > libc-dev
> > Depends: g++ (>= 4:6.3) but it is not going to be installed
> > E: Unable to correct problems, you have held broken packages.
> >
> > So, I do have issues and broken packages...
> >
>
>
> Hi Miroslav,
>
> you must have mixed Devuan repos with other sources (either now or in
> the past). Please check. If this is the case, one way to get back to a
> proper Devuan ASCII is by following the same procedure detailed here:
>
[ AMPROLLA GLITCH: ISSUE SOLVED -- PLEASE READ CAREFULLY ]
> https://lists.dyne.org/lurker/message/20170628.160400.b98c6ead.en.html
And I think that did it... There's only one glitch left to fix. And it won't be
hard, I don't think, for you experts.
It's in what I was able to post (Lynx couldn't post it all, posts pending
there) to the (link already previously given in the thread with the previous,
almost solved issue of the same Subject as that Dev1Galaxy.org forum topic):
Broken packages in Ascii, how to fix? (Beware of Debian Stretch)
https://dev1galaxy.org/viewtopic.php?id=1115
It's in the latest post in that forum topic (but a lot of info also follows below).
It's the only thing that failed, and it was a true dist-upgrade (looking more
like downgrade :) ):
1 upgraded, 0 newly installed, 103 downgraded, 0 to remove and 0 not upgraded.
as can be read in that already posted text in the forum link.
And that only thing that failed could be critical. Here we go, pasting from
that log (because I'll be able to give more information here).
It was the dist-upgrade, after which I removed the /etc/apt/preferences.d/ascii-pin.
I have these in /etc/apt/apt.conf :
Debug::pkgProblemResolver "on";
Debug::Acquire::ftp "on";
Debug::Acquire::http "on";
Debug::Acquire::gpgv "on";
Debug::BuildDeps "on";
Debug::Hashes "on";
=======================================================================
What follows below is reduced from this (user tee'd away in terminal during the
run of "apt-get dist-upgrade" starting at 2017-07-05_16h35m) log:
-rw-r--r-- 1 root root 219K 2017-07-05 16:43 apt-get_dist-upgrade_170705_1635_gdOv.log
=======================================================================
...
GET /merged/pool/DEVUAN/main/s/sysvinit/initscripts_2.88dsf-59.3%2bdevuan2_amd64.deb HTTP/1.1
Host: packages.devuan.org
User-Agent: Debian APT-HTTP/1.3 (1.4.6)
...
GET /devuan/pool/main/s/sysvinit/initscripts_2.88dsf-59.3%2bdevuan2_amd64.deb HTTP/1.1
Host: packages.devuan.org
User-Agent: Debian APT-HTTP/1.3 (1.4.6)
...
Answer for:
http://packages.devuan.org/devuan/pool/main/s/sysvinit/initscripts_2.88dsf-59.3+devuan2_amd64.deb
HTTP/1.1 200 OK
Server: nginx/1.9.9
Date: Wed, 05 Jul 2017 16:39:47 GMT
Content-Type: application/octet-stream
Content-Length: 84964
Last-Modified: Sat, 05 Mar 2016 08:32:17 GMT
Connection: keep-alive
ETag: "56da9991-14be4"
Accept-Ranges: bytes
Get:7
http://packages.devuan.org/merged ascii/main amd64 initscripts amd64 2.88dsf-59.3+devuan2 [85.0 kB]
GET /devuan/pool/main/c/colord/libcolord2_1.2.1-1%2bdevuan1_amd64.deb HTTP/1.1
Host: packages.devuan.org
User-Agent: Debian APT-HTTP/1.3 (1.4.6)
...
dpkg: warning: downgrading initscripts from 2.88dsf-59.9 to 2.88dsf-59.3+devuan2
...
Preparing to unpack .../initscripts_2.88dsf-59.3+devuan2_amd64.deb ...
Unpacking initscripts (2.88dsf-59.3+devuan2) over (2.88dsf-59.9) ...
Replaced by files in installed package sysvinit-utils (2.88dsf-59.9) ...
dpkg: warning: downgrading util-linux from 2.29.2-1 to 2.28-1+devuan3
Preparing to unpack .../util-linux_2.28-1+devuan3_amd64.deb ...
Unpacking util-linux (2.28-1+devuan3) over (2.29.2-1) ...
Setting up util-linux (2.28-1+devuan3) ...
...
Setting up initscripts (2.88dsf-59.3+devuan2) ...
Installing new version of config file /etc/init.d/umountfs ...
Installing new version of config file /etc/init.d/umountroot ...
Installing new version of config file /etc/default/rcS ...
Installing new version of config file /etc/default/tmpfs ...
/var/lib/dpkg/info/initscripts.postinst: 8: .: Can't open /lib/init/vars.sh
dpkg: error processing package initscripts (--configure):
subprocess installed post-installation script returned error exit status 2
...
dpkg: dependency problems prevent configuration of sysvinit-core:
sysvinit-core depends on initscripts (>= 2.88dsf-13.3); however:
Package initscripts is not configured yet.
dpkg: error processing package sysvinit-core (--configure):
dependency problems - leaving unconfigured
...
dpkg: dependency problems prevent configuration of init:
init depends on sysvinit-core | upstart; however:
Package sysvinit-core is not configured yet.
Package upstart is not installed.
dpkg: error processing package init (--configure):
dependency problems - leaving unconfigured
Setting up tasksel-data (3.33+devuan0.3) ...
Setting up tasksel (3.33+devuan0.3) ...
Setting up task-english (3.33+devuan0.3) ...
Processing triggers for libc-bin (2.24-11) ...
Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.9.27-unofficial+grsec170512-22
Processing triggers for menu (2.1.47+b1) ...
Errors were encountered while processing:
initscripts
sysvinit-core
init
2017/07/05 16:43:14 Reading config from: /etc/paxrat/paxrat.conf
E: Sub-process /usr/bin/dpkg returned an error code (1)
=======================================================================
Now, looking at the script:
/var/lib/dpkg/info/initscripts.postinst
It does have ". /lib/init/vars.sh" at line 8:
# head -16 /var/lib/dpkg/info/initscripts.postinst
#! /bin/sh
#
# initscripts postinst
#
set -e
. /lib/init/vars.sh
. /lib/init/tmpfs.sh
. /lib/init/mount-functions.sh
# Set this as a variable to hide from lintian the fact that we're removing
# it; otherwise, a wrong lintian check + ftp fatal autoreject prevents us
# from uploading this legitimate code, even though the previous upload was
# accepted without incident.
devshm=/dev/shm
And it surely:
"Can't open /lib/init/vars.sh"
because in my system:
# ls -l /lib/init/
total 44
-rw-r--r-- 1 root root 4451 2016-03-04 02:25 bootclean.sh
-rwxr-xr-x 1 root root 5643 2016-03-04 02:25 init-d-script
-rw-r--r-- 1 root root 17014 2016-03-04 02:25 mount-functions.sh
-rw-r--r-- 1 root root 721 2016-03-04 02:25 swap-functions.sh
-rw-r--r-- 1 root root 3336 2016-03-04 02:25 tmpfs.sh
#
it is just not there.
And there's no dpkg --configure <whatever> or dpkg-reconfigure... to help here
without understanding much more...
And if I don't get this solved, I'm afraid this machine won't be booting...
Which wouldn't be so terribly bad but only because I took backup of the whole
system to the bit, so in maybe one or two hours, I could be back at some, how
long was it, some 10-15 hours ago from now state, essentially...
But I'd still very much like to get this solved the good-tester's way :) ...
I'd so much like to be able to be more helpful with the Devuan project some
day... Ah, forget it...
Any ideas?
What is that /lib/init/vars.sh ? Which package should have installed it? What
could be the reason that it is missing?
Regards!
--
Miroslav Rovis
Zagreb, Croatia
https://www.CroatiaFidelis.hr