[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Linux 9 stretch What to do about reviving speakup?



Samuel Thibault <sthibault@debian.org> writes:
> As I already wrote several times:
> 
> fix the issue by hand in /lib/systemd/system/espeakup.service, by adding
> /bin/ to
> 
> ExecStart=sh -c 'modprobe speakup_soft && /usr/bin/espeakup -V ${VOICE}'
> 
> so it looks like
> 
> ExecStart=/bin/sh -c 'modprobe speakup_soft && /usr/bin/espeakup -V 
> "${VOICE}"'

	I found that file exactly as you indicated and added
/bin.  Here it is:

[Unit]
Description=Software speech output for Speakup
Documentation=man:espeakup(8)
Wants=systemd-udev-settle.service
After=systemd-udev-settle.service sound.target

[Service]
Type=forking
PIDFile=/run/espeakup.pid
Environment="VOICE= ALSA_CARD="
EnvironmentFile=-/etc/default/espeakup
ExecStart=sh -c '/bin/modprobe speakup_soft && /usr/bin/espeakup -V ${VOICE}'
ExecReload=/bin/kill -HUP $MAINPID
Restart=always

[Install]
WantedBy=sound.target
> 
> 
> Then you will be able to upgrade the package to version 1:0.80-5+deb9u3
> 
> 
> If you don't understand what is written above, please say so!  We can't
> know what you don't understand if you don't say you don't understand it.

	It is actually quite clear but nothing changed.

	The system this time is named a0 and is the twin brother,
at least as far as speakup goes, of the first system except that
I didn't try anything creative first.  The command was

apt-get upgrade after doing apt-get update first.

I hope you have no trouble reading all the metadata that seems to
come from the output of the scripts as they produced it.

root@a0:/lib/systemd/system# apt-get upgrade

Reading package lists... 0%

Reading package lists... 100%

Reading package lists... Done

Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree       

Reading state information... 0%

Reading state information... 0%

Reading state information... Done

Calculating upgrade... 0%

Calculating upgrade... 50%

Calculating upgrade... Done
The following packages have been kept back:
  linux-image-686-pae
The following packages will be upgraded:
  apt apt-utils curl espeakup gnupg gnupg-agent gpgv libapt-inst2.0 libc-l10n
  libcups2 libcurl3 libcurl3-gnutls libgd3 libldb1 libopenjp2-7 libsmbclient
  libsox-fmt-all libsox-fmt-alsa libsox-fmt-ao libsox-fmt-base libsox-fmt-mp3
  libsox-fmt-oss libsox-fmt-pulse libsox2 libssh-gcrypt-4 libssl1.0.2
  libwayland-client0 libwayland-cursor0 libwayland-server0 libwbclient0
  libxapian30 libzmq5 locales multiarch-support openssh-client openssh-server
  openssh-sftp-server samba-libs sox tzdata
40 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
8 not fully installed or removed.
Need to get 0 B/21.2 MB of archives.
After this operation, 129 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... 

Extracting templates from packages: 75%
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ...
Preparing to unpack .../espeakup_1%3a0.80-5+deb9u3_i386.deb ...
------

Here is where it blows up every time.

Failed to stop espeakup.service: Unit espeakup.service not loaded.

So, it's already stopped.

invoke-rc.d: initscript espeakup, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to stop espeakup.service: Unit espeakup.service not loaded.
invoke-rc.d: initscript espeakup, action "stop" failed.
dpkg: error processing archive /var/cache/apt/archives/espeakup_1%3a0.80-5+deb9u3_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 5
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Failed to start espeakup.service: Unit espeakup.service is not loaded properly: Invalid argument.
See system logs and 'systemctl status espeakup.service' for details.
invoke-rc.d: initscript espeakup, action "start" failed.
● espeakup.service - Software speech output for Speakup
   Loaded: error (Reason: Invalid argument)
   Active: inactive (dead)
     Docs: man:espeakup(8)

Apr 01 16:07:49 a0 systemd[1]: [/lib/systemd/system/espeakup.service:12] Ex…CE}'
Apr 01 16:07:49 a0 systemd[1]: espeakup.service: Service lacks both ExecSta…ing.
Apr 01 16:12:43 a0 systemd[1]: [/lib/systemd/system/espeakup.service:12] Ex…CE}'
Apr 01 16:12:43 a0 systemd[1]: espeakup.service: Service lacks both ExecSta…ing.
Apr 01 16:12:43 a0 systemd[1]: [/lib/systemd/system/espeakup.service:12] Ex…CE}'
Apr 01 16:12:43 a0 systemd[1]: espeakup.service: Service lacks both ExecSta…ing.
Apr 01 16:12:44 a0 systemd[1]: [/lib/systemd/system/espeakup.service:12] Ex…CE}'
Apr 01 16:12:44 a0 systemd[1]: espeakup.service: Service lacks both ExecSta…ing.
Apr 01 16:12:44 a0 systemd[1]: [/lib/systemd/system/espeakup.service:12] Ex…CE}'
Apr 01 16:12:44 a0 systemd[1]: espeakup.service: Service lacks both ExecSta…ing.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../libapt-inst2.0_1.4.9_i386.deb ...
Unpacking libapt-inst2.0:i386 (1.4.9) over (1.4.8) ...
Preparing to unpack .../archives/apt_1.4.9_i386.deb ...
Unpacking apt (1.4.9) over (1.4.8) ...
Errors were encountered while processing:
 /var/cache/apt/archives/espeakup_1%3a0.80-5+deb9u3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

	Am I still missing something?

Martin


Reply to: