You are not logged in.

#1 2022-04-06 13:51:22

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

[FIXED] Error running bl-install-pipemenu

When I from the menu run System => Install Favorite Packages => Multimedia Editors =>  Install Mhwaveedit,  terminal pops up and disapear.
Problem with both 64 bit test-iso  posted here: Menu => System 2 errors and 32-bit (posted here .

Terminal command
# /usr/bin/bl-install-pipemenu --install mhwaveedit  returns:
mhwaveedit is not a valid Debian package name

Terminal command
# apt policy mhwaveedit shows otherwise
No problem with "apt install [package-name]"

Same problem when reinstalling. Same if I have local repo in sourses or official repos.
Same if I am using lxterminal or urxvt.
Same problem with shorter "bl-install hw-probe"
But no error when installing from menu in live session!

Affected packages in 32 bit iso: gpicview
hw-probe
libreoffice-draw
libreoffice-writer
mhwaveedit
ristretto
viewnior
Just now, could not find the list I wrote for 64bit i

John, I was not alone reporting the problem with 64bit iso...
You tested also in installed vm, not only in live session?

Anyone else tested?

Lastly, some packages is already installed. Shall they be on install menu then?

Last edited by johnraff (2022-05-14 06:41:20)


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#2 2022-04-07 01:49:27

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

Re: [FIXED] Error running bl-install-pipemenu

This is indeed puzzling - let's see if we can get to the bottom of it.

I'm testing on a freshly installed (not live) 32 bit system, from the iso I posted 2 days ago.

rbh wrote:

When I from the menu run System => Install Favorite Packages => Multimedia Editors =>  Install Mhwaveedit,  terminal pops up and disapear.

This works OK for me.
Also, Alt+F2 (gmrun) 'bl-install mhwaveedit' works.

Problem with both 64 bit test-iso  posted here: Menu => System 2 errors

A year and a half ago! That thread continued with repetitions of you finding errors and me finding no problem. neutral
I retried all the combinations of commands you posted there, both in a terminal and in a gmrun window and everything worked for me.

Same if I am using lxterminal or urxvt.

I'm using the 32bit default urxvt. I did wonder about the choice of terminal, but that seems to be ruled out.

John, I was not alone reporting the problem with 64bit iso...

I know, but Naik dropped out of the conversation, leaving the impression the problem might be with (unsupported) termite. I wondered about terminator too, but you're getting the issue with both urxvt and lxterminal, so maybe we can forget about the terminal for now.

You tested also in installed vm, not only in live session?

Yes, I'm testing in the installed 32bit system. I haven't tested very much in a live session yet.

Lastly, some packages is already installed. Shall they be on install menu then?

Installed packages should not appear on the install menu. Which packages are they that appear for you? That might be a hint...

The only other idea I have at the moment is locales. You're using a Swedish locale? Something about special characters?
Or, possibly a hidden space getting in the package name, like ' mhwaveedit'??

EDIT: Anyway, the error message "...is not a valid Debian package name" is coming from bl-install.
Could you try once more 'bash -x bl-install mhwaveedit' in a terminal? Maybe we can see why the error is being triggered.

Last edited by johnraff (2022-04-07 02:08:11)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#3 2022-04-07 07:06:53

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [FIXED] Error running bl-install-pipemenu

From topic Beryllium 32bit iso post # 5: wrote:

root@U-BerylBuns:~# bl-install-pipemenu --install mdadm
  mdadm Multi-Disk manager: already installed

Also same for mpv and ristretto.

Output from 'bash -x bl-install mhwaveedit' follows later from other computer.


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#4 2022-04-07 07:29:19

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

Re: [FIXED] Error running bl-install-pipemenu

mpv and ristretto are already installed - do they appear in the install menu for you? They don't show for me.
mdadm should have been in the iso too but I forgot to edit the 32bit package list.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#5 2022-04-07 10:51:50

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [FIXED] Error running bl-install-pipemenu

johnraff wrote:

mpv and ristretto are already installed - do they appear in the install menu for you?

Sorry. They apears in file /usr/bin/bl-install-pipemenu, where I copied package-names from. They do not appears in the invoked menu.

Last edited by johnraff-admin (2022-07-03 07:12:11)


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#6 2022-04-07 12:20:46

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [FIXED] Error running bl-install-pipemenu

Output from "bl-install mhwaedit"
Note message in row 64-67.
Third test. This test with rxvt-unicode uninstalled, lxterminal sole terminal.

+ termname=/usr/bin/lxterminal
+ termname=lxterminal
+ badterm_msg='bl-install: lxterminal is not supported.
Please choose a different x-terminal-emulator.'

Total output:

+ HELP='bl-install: a wrapper round the promptInstall() function in bl-includes

Usage:  bl-install -n "name of app(s)" -m "message text" -f "/path/to/file" --setup "function_name" [apt option] package [package...]

    -h --help                   show this message and exit
    -n --name       <string>    descriptive name of package(s) to be installed
    -m --message    <string>    message to display to user before installing
    -f --file       <filepath>  file to hold return value of script on exit
    --setup         <function_name>  function to run before installation

Specified options may be provided in any order.
If -n, -m or -f are used, they must be followed by an argument.
If -n or -m are absent they will be generated automatically.
If -f is set, the script will write its exit return value there,
so a calling script can test for success.
If --setup is used, <function_name> must exist as a function in the
environment, so will probably have to be exported by the calling script.

All other arguments are taken as apt-get options or package names to install.

This script will open a terminal window to run the installer,
and write the return value to a temporary file. (This is needed because
there is no other way to query the return value of a process which
was run in a new terminal.)
This is useful if launching from a GUI, but in a script known to be
already running in a terminal, it is not needed;
the promptInstall() function from bl-includes is enough.
'
+ for i in "$@"
+ case "$i" in
+ BL_COMMON_LIBDIR=/usr/lib/bunsen/common
+ trap send_return EXIT
+ . /usr/lib/bunsen/common/bl-includes
+ name=
+ message=
+ retfile=
+ f_args=()
+ s_args=()
+ args=()
+ packages=()
+ [[ -n x ]]
+ case "$1" in
+ args+=("$1")
+ packages+=("$1")
+ shift
+ [[ -n '' ]]
+ [[ 1 -gt 0 ]]
+ [[ -n '' ]]
+ words=(${packages[0]//-/ })
+ name=Mhwaedit
+ [[ -n '' ]]
+ message='This script will install Mhwaedit'
+ terminalCheck -T 'Install Mhwaedit' -n Mhwaedit --message 'This script will install Mhwaedit' mhwaedit
+ [[ -t 0 ]]
+ [[ -t 1 ]]
+ [[ -n :0 ]]
+ local -a termcmd
+ local termname
+ [[ -T = \-\T ]]
+ local 'title=Install Mhwaedit'
+ shift 2
+++ which x-terminal-emulator
++ readlink -f /usr/bin/x-terminal-emulator
+ termname=/usr/bin/lxterminal
+ termname=lxterminal
+ badterm_msg='bl-install: lxterminal is not supported.
Please choose a different x-terminal-emulator.'
+ case $termname in
+ termcmd=(lxterminal --no-remote)
+ [[ -n Install Mhwaedit ]]
+ termcmd+=(-T "$title")
+ termcmd+=(-e)
+ exec lxterminal --no-remote -T 'Install Mhwaedit' -e bl-install -n Mhwaedit --message 'This script will install Mhwaedit' mhwaedit

In test 2, with both urxwt and lxterminal. Comand given in urxvt. galternatives showed lxterminal as default terminal but command -terminal-emulator started urxvt.  line 66-67 says:

badterm_msg='bl-install: urxvt is not supported.
Please choose a different x-terminal-emulator.'

Same error in line 64-67, when urxvt is sole terminal and command given in urxvt-teminal:

+ termname=/usr/bin/urxvt
+ termname=urxvt
+ badterm_msg='bl-install: urxvt is not supported.
Please choose a different x-terminal-emulator.'

// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#7 2022-04-11 08:40:00

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

Re: [FIXED] Error running bl-install-pipemenu

rbh wrote:

Output from "bl-install mhwaedit"
Note message in row 64-67.
Third test. This test with rxvt-unicode uninstalled, lxterminal sole terminal.

+ termname=/usr/bin/lxterminal
+ termname=lxterminal
+ badterm_msg='bl-install: lxterminal is not supported.
Please choose a different x-terminal-emulator.'

That badterm_msg is just a variable being defined in case it's needed later. It's not an error.

Total output:

...
+ case $termname in
+ termcmd=(lxterminal --no-remote)
+ [[ -n Install Mhwaedit ]]
+ termcmd+=(-T "$title")
+ termcmd+=(-e)
+ exec lxterminal --no-remote -T 'Install Mhwaedit' -e bl-install -n Mhwaedit --message 'This script will install Mhwaedit' mhwaedit

So, that means that the command is being passed to lxterminal with no error so far.
What happens if you run

lxterminal --no-remote -T 'Install Mhwaedit' -e bl-install -n Mhwaedit --message 'This script will install Mhwaedit' mhwaedit

in a terminal?

On my 32bit and 64bit VMs the terminal appears and... at last I can duplicate your error!
"Unable to locate package mhwaedit"

I checked with the debian package search:

You have searched for packages that names contain mhwaedit in all suites, all sections, and all architectures.

Sorry, your search gave no results

The package name is mhwaveedit. neutral

I just checked the pipemenu code, and it is correctly referring to mhwaveedit.

Could you test again?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#8 2022-04-11 09:21:59

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [FIXED] Error running bl-install-pipemenu

johnraff wrote:

The package name is mhwaveedit. neutral

I just checked the pipemenu code, and it is correctly referring to mhwaveedit.

Could you test again?


In terminal tillix. (on this laptop tillix is default terminal and starts by x-terminal-emulator).

~$ bl-install mhwaveedit
  mhwaveedit is not a valid Debian package name

I do not know how mhwaveedit could be misspelled before.

Last edited by rbh (2022-04-11 09:22:40)


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#9 2022-04-11 09:39:58

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

Re: [FIXED] Error running bl-install-pipemenu

On my 32bit VM I installed tilix (25MB!)
and in tilix as x-terminal-emulator 'bl-install mhwaveedit' got this output:

  INSTALL MHWAVEEDIT
  ------------------
  
  This script will install Mhwaveedit
  
  Run the installer now? [Y/n]

And worked as expected, right up to the point where I declined the later offer that comes from apt.

So I still can't reproduce your error.

Your previous test seemed to be using lxterminal - could you retry:

bash -x bl-install mhwaveedit

in tilix?
Maybe we can see what's triggering the "not a valid Debian package name" error.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#10 2022-04-12 08:23:22

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [FIXED] Error running bl-install-pipemenu

johnraff wrote:

Your previous test seemed to be using lxterminal - could you retry:

bash -x bl-install mhwaveedit

in tilix?
Maybe we can see what's triggering the "not a valid Debian package name" error.

Still the menu fails or "bl-install mhwaveedit", but now the above command suceed, if I prepend with "LC_ALL=C".
Command "bash -x bl-install mhwaveedit", fails but command "LC_ALL=C bash -x bl-install mhwaveedit", succeds!

I could not get all output text. The tillix scrollbar dissapered. could only copy one page. Where I think there is missed output, I have inserted [...]. Also comment inserted between [].

Maybe also should mention I have migrated to bookworm. I have some bullseye vm-boxes and one buster left. Have not found any difference between Debian OS-versions.

Output for "LC_ALL=C bash -x bl-install mhwaveedit"

+ local 'title=INSTALL MHWAVEEDIT'
+ say '
INSTALL MHWAVEEDIT
------------------

This script will install Mhwaveedit
'
++ tput cols
+ local width=112
+ sed 's/^/  /'
+ fold -s -w 109
  
  INSTALL MHWAVEEDIT
  ------------------
  
  This script will install Mhwaveedit
  
+ [[ '' = \p\a\u\s\e ]]
+ sleep 0
+ prompt '  Run the installer now?'
+ local answer prompt default
+ [[ -n '' ]]
+ [[ ! -n '' ]]
+ prompt=Y/n
+ default=Y
+ true
+ read -r -p '  Run the installer now? [Y/n] ' answer
  Run the installer now? [Y/n] 

[...]

+ say 'Updating sources...' 1
++ tput cols
+ local width=112
+ sed 's/^/  /'
+ fold -s -w 109
  Updating sources...
+ [[ 1 = \p\a\u\s\e ]]
+ sleep 1
+ safeUpdate
+ local ignore_string=
+ local 'ignore_string_pw=Sorry, try again.'
+ [[ '' = \-\-\i\g\n\o\r\e ]]
+ local apt_error
+ exec
++ LC_MESSAGES=C
++ sudo apt-get update
[sudo] password for rbh:

[...]

d.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://192.168.1.254/mirror/download.webmin.com/download/repository/dists/sarge/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.'
+ [[ -z W: http://192.168.1.254/apt.syncthing.net/dists/syncthing/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://192.168.1.254/mirror/download.webmin.com/download/repository/dists/sarge/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. ]]
+ grep -iqEv '(Sorry, try again.|$^|^$)'
+ exec
+ errorExit 'There were problems during the update.' 'W: http://192.168.1.254/apt.syncthing.net/dists/syncthing/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://192.168.1.254/mirror/download.webmin.com/download/repository/dists/sarge/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.'
+ say '
There were problems during the update.
' 1
++ tput cols
+ local width=112
+ sed 's/^/  /'
+ fold -s -w 109
  
  There were problems during the update.
  
+ [[ 1 = \p\a\u\s\e ]]
+ sleep 1
++ type -t log
+ [[ '' = \f\u\n\c\t\i\o\n ]]
+ [[ -n W: http://192.168.1.254/apt.syncthing.net/dists/syncthing/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://192.168.1.254/mirror/download.webmin.com/download/repository/dists/sarge/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. ]]
+ true
+ local REPLY
+ read -rn1 -p '  Press "d" for details (q to quit) '
  Press "d" for details (q to quit) 

+ echo '

'



+ echo 'ERROR MESSAGE:
W: http://192.168.1.254/apt.syncthing.net/dists/syncthing/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://192.168.1.254/mirror/download.webmin.com/download/repository/dists/sarge/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
------------------------------------'
ERROR MESSAGE:
W: http://192.168.1.254/apt.syncthing.net/dists/syncthing/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://192.168.1.254/mirror/download.webmin.com/download/repository/dists/sarge/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
------------------------------------
+ say '
Would you like to quit now, or continue anyway?
(Be careful!)
Enter "q" to quit, "c" to continue:
'
++ tput cols
+ local width=112
+ sed 's/^/  /'
+ fold -s -w 109
  
  Would you like to quit now, or continue anyway?
  (Be careful!)
  Enter "q" to quit, "c" to continue:
  
+ [[ '' = \p\a\u\s\e ]]
+ sleep 0
+ read -r

[I entered c+Enter and script continued]
¨
+ sed 's/^/  /'
+ fold -s -w 109
  Installing package...
+ [[ 1 = \p\a\u\s\e ]]
+ sleep 1
+ safeInstall mhwaveedit
+ local 'ignore_string_pw=Sorry, try again.'
+ local 'ignore_string1=Extracting templates from packages: 100%'
+ local 'ignore_string2=Retrieving bug reports... Done'
+ local 'ignore_string3=Parsing Found/Fixed information... Done'
+ local apt_error
+ exec
++ LC_MESSAGES=C
++ sudo apt-get install mhwaveedit
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgweather-3-16 libgweather-common linux-headers-5.16.0-5-686-pae linux-headers-5.16.0-5-common
  linux-image-5.10.0-13-686
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  mhwaveedit
0 upgraded, 1 newly installed, 0 to remove and 60 not upgraded.
Need to get 370 kB of archives.
After this operation, 1241 kB of additional disk space will be used.
Get:1 http://192.168.1.254/mirror/ftp.acc.umu.se/debian bookworm/main i386 mhwaveedit i386 1.4.24-1 [370 kB]
Fetched 370 kB in 1s (528 kB/s)
Selecting previously unselected package mhwaveedit.
(Reading database ... 585250 files and directories currently installed.)
Preparing to unpack .../mhwaveedit_1.4.24-1_i386.deb ...
Unpacking mhwaveedit (1.4.24-1) ...
Setting up mhwaveedit (1.4.24-1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for man-db (2.10.2-1) ...
[...]
+ say '
Mhwaveedit has been installed successfully.

Hit any key to exit...'
++ tput cols
+ local width=112
+ sed 's/^/  /'
+ fold -s -w 109
  
  Mhwaveedit has been installed successfully.
  
  Hit any key to exit...
+ [[ '' = \p\a\u\s\e ]]
+ sleep 0
+ read -srn1
+ return 0
+ exit
+ send_return
+ local retval=0
+ [[ -z '' ]]
+ return 0

Last edited by rbh (2022-04-12 08:29:17)


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#11 2022-04-12 08:27:00

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [FIXED] Error running bl-install-pipemenu

johnraff wrote:

Your previous test seemed to be using lxterminal - could you retry:

bash -x bl-install mhwaveedit

in tilix?
Maybe we can see what's triggering the "not a valid Debian package name" error.

Still the menu fails or "bl-install mhwaveedit", but now the above command suceed, if I prepend with "LC_ALL=C".
Command "bash -x bl-install mhwaveedit", fails but command "LC_ALL=C bash -x bl-install mhwaveedit", succeds!

I could not get all output text. The tillix scrollbar dissapered. could only copy one page. Where I think there is missed output, I have inserted [...]. Also comment inserted between [].

Maybe also should mention I have migrated to bookworm. I have some bullseye vm-boxes and one buster left. Have not found any difference between Debian OS-versions.

+ local 'title=INSTALL MHWAVEEDIT'
+ say '
INSTALL MHWAVEEDIT
------------------

This script will install Mhwaveedit
'
++ tput cols
+ local width=112
+ sed 's/^/  /'
+ fold -s -w 109
  
  INSTALL MHWAVEEDIT
  ------------------
  
  This script will install Mhwaveedit
  
+ [[ '' = \p\a\u\s\e ]]
+ sleep 0
+ prompt '  Run the installer now?'
+ local answer prompt default
+ [[ -n '' ]]
+ [[ ! -n '' ]]
+ prompt=Y/n
+ default=Y
+ true
+ read -r -p '  Run the installer now? [Y/n] ' answer
  Run the installer now? [Y/n] 

[...]

+ say 'Updating sources...' 1
++ tput cols
+ local width=112
+ sed 's/^/  /'
+ fold -s -w 109
  Updating sources...
+ [[ 1 = \p\a\u\s\e ]]
+ sleep 1
+ safeUpdate
+ local ignore_string=
+ local 'ignore_string_pw=Sorry, try again.'
+ [[ '' = \-\-\i\g\n\o\r\e ]]
+ local apt_error
+ exec
++ LC_MESSAGES=C
++ sudo apt-get update
[sudo] password for rbh:

[...]

d.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://192.168.1.254/mirror/download.webmin.com/download/repository/dists/sarge/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.'
+ [[ -z W: http://192.168.1.254/apt.syncthing.net/dists/syncthing/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://192.168.1.254/mirror/download.webmin.com/download/repository/dists/sarge/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. ]]
+ grep -iqEv '(Sorry, try again.|$^|^$)'
+ exec
+ errorExit 'There were problems during the update.' 'W: http://192.168.1.254/apt.syncthing.net/dists/syncthing/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://192.168.1.254/mirror/download.webmin.com/download/repository/dists/sarge/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.'
+ say '
There were problems during the update.
' 1
++ tput cols
+ local width=112
+ sed 's/^/  /'
+ fold -s -w 109
  
  There were problems during the update.
  
+ [[ 1 = \p\a\u\s\e ]]
+ sleep 1
++ type -t log
+ [[ '' = \f\u\n\c\t\i\o\n ]]
+ [[ -n W: http://192.168.1.254/apt.syncthing.net/dists/syncthing/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://192.168.1.254/mirror/download.webmin.com/download/repository/dists/sarge/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. ]]
+ true
+ local REPLY
+ read -rn1 -p '  Press "d" for details (q to quit) '
  Press "d" for details (q to quit) 

+ echo '

'



+ echo 'ERROR MESSAGE:
W: http://192.168.1.254/apt.syncthing.net/dists/syncthing/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://192.168.1.254/mirror/download.webmin.com/download/repository/dists/sarge/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
------------------------------------'
ERROR MESSAGE:
W: http://192.168.1.254/apt.syncthing.net/dists/syncthing/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://192.168.1.254/mirror/download.webmin.com/download/repository/dists/sarge/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
------------------------------------
+ say '
Would you like to quit now, or continue anyway?
(Be careful!)
Enter "q" to quit, "c" to continue:
'
++ tput cols
+ local width=112
+ sed 's/^/  /'
+ fold -s -w 109
  
  Would you like to quit now, or continue anyway?
  (Be careful!)
  Enter "q" to quit, "c" to continue:
  
+ [[ '' = \p\a\u\s\e ]]
+ sleep 0
+ read -r

[I entered c+Enter and script continued]
¨
+ sed 's/^/  /'
+ fold -s -w 109
  Installing package...
+ [[ 1 = \p\a\u\s\e ]]
+ sleep 1
+ safeInstall mhwaveedit
+ local 'ignore_string_pw=Sorry, try again.'
+ local 'ignore_string1=Extracting templates from packages: 100%'
+ local 'ignore_string2=Retrieving bug reports... Done'
+ local 'ignore_string3=Parsing Found/Fixed information... Done'
+ local apt_error
+ exec
++ LC_MESSAGES=C
++ sudo apt-get install mhwaveedit
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgweather-3-16 libgweather-common linux-headers-5.16.0-5-686-pae linux-headers-5.16.0-5-common
  linux-image-5.10.0-13-686
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  mhwaveedit
0 upgraded, 1 newly installed, 0 to remove and 60 not upgraded.
Need to get 370 kB of archives.
After this operation, 1241 kB of additional disk space will be used.
Get:1 http://192.168.1.254/mirror/ftp.acc.umu.se/debian bookworm/main i386 mhwaveedit i386 1.4.24-1 [370 kB]
Fetched 370 kB in 1s (528 kB/s)
Selecting previously unselected package mhwaveedit.
(Reading database ... 585250 files and directories currently installed.)
Preparing to unpack .../mhwaveedit_1.4.24-1_i386.deb ...
Unpacking mhwaveedit (1.4.24-1) ...
Setting up mhwaveedit (1.4.24-1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for man-db (2.10.2-1) ...
[...]
+ say '
Mhwaveedit has been installed successfully.

Hit any key to exit...'
++ tput cols
+ local width=112
+ sed 's/^/  /'
+ fold -s -w 109
  
  Mhwaveedit has been installed successfully.
  
  Hit any key to exit...
+ [[ '' = \p\a\u\s\e ]]
+ sleep 0
+ read -srn1
+ return 0
+ exit
+ send_return
+ local retval=0
+ [[ -z '' ]]
+ return 0

Output of "bash -x bl-install mhwaveedit"

+ HELP='bl-install: a wrapper round the promptInstall() function in bl-includes

Usage:  bl-install -n "name of app(s)" -m "message text" -f "/path/to/file" --setup "function_name" [apt option] package [package...]

    -h --help                   show this message and exit
    -n --name       <string>    descriptive name of package(s) to be installed
    -m --message    <string>    message to display to user before installing
    -f --file       <filepath>  file to hold return value of script on exit
    --setup         <function_name>  function to run before installation

Specified options may be provided in any order.
If -n, -m or -f are used, they must be followed by an argument.
If -n or -m are absent they will be generated automatically.
If -f is set, the script will write its exit return value there,
so a calling script can test for success.
If --setup is used, <function_name> must exist as a function in the
environment, so will probably have to be exported by the calling script.

All other arguments are taken as apt-get options or package names to install.

This script will open a terminal window to run the installer,
and write the return value to a temporary file. (This is needed because
there is no other way to query the return value of a process which
was run in a new terminal.)
This is useful if launching from a GUI, but in a script known to be
already running in a terminal, it is not needed;
the promptInstall() function from bl-includes is enough.
'
+ for i in "$@"
+ case "$i" in
+ BL_COMMON_LIBDIR=/usr/lib/bunsen/common
+ trap send_return EXIT
+ . /usr/lib/bunsen/common/bl-includes
+ name=
+ message=
+ retfile=
+ f_args=()
+ s_args=()
+ args=()
+ packages=()
+ [[ -n x ]]
+ case "$1" in
+ args+=("$1")
+ packages+=("$1")
+ shift
+ [[ -n '' ]]
+ [[ 1 -gt 0 ]]
+ [[ -n '' ]]
+ words=(${packages[0]//-/ })
+ name=Mhwaveedit
+ [[ -n '' ]]
+ message='This script will install Mhwaveedit'
+ terminalCheck -T 'Install Mhwaveedit' -n Mhwaveedit --message 'This script will install Mhwaveedit' mhwaveedit
+ [[ -t 0 ]]
+ [[ -t 1 ]]
+ [[ -n :0.0 ]]
+ local -a termcmd
+ local termname
+ [[ -T = \-\T ]]
+ local 'title=Install Mhwaveedit'
+ shift 2
+++ which x-terminal-emulator
++ readlink -f /usr/bin/x-terminal-emulator
+ termname=/usr/bin/tilix.wrapper
+ termname=tilix.wrapper
+ badterm_msg='bl-install: tilix.wrapper is not supported.
Please choose a different x-terminal-emulator.'
+ case $termname in
+ termcmd=(tilix --new-process)
+ [[ -n Install Mhwaveedit ]]
+ termcmd+=(-t "$title")
+ termcmd+=(-e)
+ exec tilix --new-process -t 'Install Mhwaveedit' -e bl-install -n Mhwaveedit --message 'This script will install Mhwaveedit' mhwaveedit

(tilix:28495): GLib-GObject-WARNING **: 10:09:45.230: invalid (NULL) pointer instance

(tilix:28495): GLib-GObject-CRITICAL **: 10:09:45.230: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

Last edited by rbh (2022-04-12 08:37:26)


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#12 2022-04-12 09:53:50

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [FIXED] Error running bl-install-pipemenu

Just tested on standard Lithum 32bit vm box. Command "LC_ALL=C bash -x bl-install mhwaveedit", starts the installer.

I added "LC_ALL=C" to the usr/bin/bl-install skript. Now command "bl-install mhwaveedi" succeded.


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#13 2022-04-13 04:49:40

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

Re: [FIXED] Error running bl-install-pipemenu

^That's interesting.
Possibly:

I wrote:

The only other idea I have at the moment is locales. You're using a Swedish locale? Something about special characters?

What happens if you set 'LC_ALL=en_GB.UTF-8' or some other locale you might have available on your machine? Then try explicitly setting Swedish (I don't know the 2-letter code)?

I can also try installing a Swedish locale on my VM to see if the error appears.

It might be possible that there's some change in behaviour between Bullseye and Bookworm though - do you get the same error on Bullseye or Buster?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#14 2022-04-13 06:51:39

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [FIXED] Error running bl-install-pipemenu

When I added en_GB.UTF-8 and removed sv_SE.UTF-8 (with "dpkg-reconfigure locales"), the script run ok.


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#15 2022-04-13 07:07:00

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [FIXED] Error running bl-install-pipemenu

And yes, the same error in Bullseye and Buster.


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#16 2022-04-13 07:58:58

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

Re: [FIXED] Error running bl-install-pipemenu

rbh wrote:

When I added en_GB.UTF-8 and removed sv_SE.UTF-8 (with "dpkg-reconfigure locales"), the script run ok.

So, I'll install sv_SE.UTF-8 and try with that. It looks like something to do with the regular expression that checks the package name.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#17 2022-04-17 05:29:51

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

Re: [FIXED] Error running bl-install-pipemenu

Quick progress report: install sv_SE.UTF-8 and use that as locale on login, and the error is reproduced "not a valid Depian package name".

OK so I think I need to look into regular expressions in different locales...


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#18 2022-04-17 06:14:29

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

Re: [FIXED] Error running bl-install-pipemenu

Got it. smile

The regex library for Swedish does not include the letter w, so the test [a-z] on mhwaveedit will fail:
https://stackoverflow.com/questions/525 … er-w-and-w

Better than [a-z] is [:lower:] apparently, which will cover the w. Anyway, tested with that substitution and 'bl-install mhwaveedit' now seems to work even with a Swedish locale, also the menu item.

I'll push an update to bunsen-common, but meanwhile if you'd like to test this you could open /usr/bin/bl-install as root and edit line #155 from

    [[ $i =~ ^[a-z0-9][a-z0-9+.-]+$ ]] || {

to

    [[ $i =~ ^[[:lower:][:digit:]][[:lower:][:digit:]+.-]+$ ]] || {

And it ought to work.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#19 2022-04-17 06:26:16

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [FIXED] Error running bl-install-pipemenu

Confirmed on this laptop.


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#20 2022-04-17 07:26:21

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

Re: [FIXED] Error running bl-install-pipemenu

So, fixed?

rbh wrote:

Affected packages in 32 bit iso: gpicview
hw-probe
libreoffice-draw
libreoffice-writer
mhwaveedit
ristretto
viewnior

But, how to account for ristretto? Is there some other letter in that name that does not appear in the Swedish alphabet?
Does it still fail to install?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

Board footer

Powered by FluxBB