ERROR: Menu Icon Not Associated To Any Package

Questions about Wine on Linux
Locked
cheese
Level 1
Level 1
Posts: 9
Joined: Sat Apr 22, 2017 3:39 pm

ERROR: Menu Icon Not Associated To Any Package

Post by cheese »

Mint 18.1 Serena Cinnamon
Wine 1.8
installed SketchUp 2016 through Wine
SketchUp icons appeared in Menu under Wine, but they don't work, SketchUp won't come up

path names of the icons are correct, does this problem has to do with SketchUp specific libraries?
added SketchUp install folder as "new override for library" through Wine Configuration
field in that form is too short and won't let me complete the whole path, (no scrolling)

copied the install folder to /home for a shorter path, no luck either
where else does an installation through Wine are file created?
do i have to manually edit every registry entries?
anything else i missed?
better ways of doing this?

has anyone seen problems similar to this, and what did you do to solve them?
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: ERROR: Menu Icon Not Associated To Any Package

Post by dimesio »

cheese
Level 1
Level 1
Posts: 9
Joined: Sat Apr 22, 2017 3:39 pm

Re: ERROR: Menu Icon Not Associated To Any Package

Post by cheese »

thank you dimesio for the pointer!

installation put SketchUp icons in the Wine menu as well as on the desktop. the desktop icons don't work either.
don't know how to get to edit properties of SketchUp icon in the Wine menu, right click doesn't give such an option.

SketchUp desktop icon property does not show a "last parameter", no /Unix part, it ends with //SketchUp.exe; the wine part doesn't point to to start.exe either, like this:-

env WINEPREFIX="/home/joe/.wine" wine C:\\Program\ Files\ \(x86\)\\SketchUp\\SketchUp\ 2016\\SketchUp\\SketchUp.exe

right click on SketchUp icon in Wine menu gives an "add to desktop" option, did that, and the property of that desktop icon now shows the "last parameter", like this:

env WINEPREFIX="/home/me/.wine" wine C:\\windows\\command\\start.exe /Unix /home/me/.wine/dosdevices/c:/users/me/Start\ Menu/Programs/SketchUp\ 2016/SketchUp.lnk

didn't work.

hand edited this path, removed the back slashes, to this,

env WINEPREFIX="/home/joe/.wine" wine C:\\windows\\command\\start.exe /Unix /home/joe/.wine/dosdevices/c:/users/joe/Start Menu/Programs/SketchUp 2016/SketchUp.lnk

didn't work.
added double quotes around the "last parameter", didn't work.
added single quotes, didn't work.

oddly enough, if i hand edit the command for the desktop icon created by Wine installation to same as the above, with no back slashes, no double quotes, like this,

env WINEPREFIX="/home/joe/.wine" wine C:\\windows\\command\\start.exe /Unix /home/joe/.wine/dosdevices/c:/users/joe/Start Menu/Programs/SketchUp 2016/SketchUp.lnk

then i got an error popup saying "file not found", but the link file was there at that path.

again, all these were done to the desktop icons, not those in Menu -> Wine, for i don't know how to edit the command path there, no such option in my Mint -> Wine menu.

by the way, i installed SketchUp Pro 2017 earlier, didn't work, so i tried to install SketchUp 2016. wouldn't let me, said i have to remove the 2017 one. clicked "remove" button on SketchUp installer, it didn't remove, but simply installed once more. so i just deleted the whole /.wine/SketchUp folder. still saying the same. i deleted SketchUp registry entries. then installed 2016. don't know whether this has to do with anything, just in case.

any ideas?
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: ERROR: Menu Icon Not Associated To Any Package

Post by dimesio »

cheese wrote: by the way, i installed SketchUp Pro 2017 earlier, didn't work, so i tried to install SketchUp 2016. wouldn't let me, said i have to remove the 2017 one. clicked "remove" button on SketchUp installer, it didn't remove, but simply installed once more. so i just deleted the whole /.wine/SketchUp folder. still saying the same. i deleted SketchUp registry entries. then installed 2016. don't know whether this has to do with anything, just in case.
You should have deleted the whole wineprefix and started over with a clean one. Try that now. If it still doesn't work, post terminal output.
cheese
Level 1
Level 1
Posts: 9
Joined: Sat Apr 22, 2017 3:39 pm

Re: ERROR: Menu Icon Not Associated To Any Package

Post by cheese »

dimesio wrote: You should have deleted the whole wineprefix and started over with a clean one.
the wineprefix folder should be on the same hierarchical level as the /.wine, correct?
i didn't see one. search on / didn't return anything either.

removed wine from Mint Software Manager, as well as Synaptic Package Manager.
installed Wine following instructions here:

https://wiki.winehq.org/Ubuntu
chose winehq-stable

when it's done, still no wineprefix in /home, same level as /.wine, nor anywhere else in /.
Wine listed in Menu lost its icon.
SketchUp under Menu -> Wine didn't work, but other apps installed earlier still work.

terminal output:
===
joe@joe ~ $ sudo dpkg --add-architecture i386
[sudo] password for joe:
joe@joe ~ $ wget https://dl.winehq.org/wine-builds/Release.key
--2017-05-05 11:14:35-- https://dl.winehq.org/wine-builds/Release.key
Resolving dl.winehq.org (dl.winehq.org)... 151.101.48.69
Connecting to dl.winehq.org (dl.winehq.org)|151.101.48.69|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3122 (3.0K) [application/pgp-keys]
Saving to: ‘Release.key.1’

Release.key.1 100%[===================>] 3.05K --.-KB/s in 0s

2017-05-05 11:14:36 (13.8 MB/s) - ‘Release.key.1’ saved [3122/3122]

joe@joe ~ $ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
joe@joe ~ $ sudo apt-get update
Ign:1 http://packages.linuxmint.com serena InRelease
Hit:2 http://packages.linuxmint.com serena Release
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:5 http://archive.canonical.com/ubuntu xenial InRelease
Hit:6 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:7 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial InRelease
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:10 https://dl.winehq.org/wine-builds/ubuntu xenial InRelease [4,677 B]
Ign:10 https://dl.winehq.org/wine-builds/ubuntu xenial InRelease
Get:11 https://dl.winehq.org/wine-builds/ubuntu xenial/main amd64 Packages [7,004 B]
Get:12 https://dl.winehq.org/wine-builds/ubuntu xenial/main i386 Packages [6,944 B]
Fetched 325 kB in 6s (50.6 kB/s)
Reading package lists... Done
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 818A435C5FCBF54A
W: The repository 'https://dl.winehq.org/wine-builds/ubuntu xenial InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
joe@joe ~ $ sudo apt-get install --install-recommends winehq-stable
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
ocl-icd-libopencl1:i386
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libgsm1:i386 libodbc1 wine-stable wine-stable-amd64 wine-stable-i386:i386
Suggested packages:
libmyodbc odbc-postgresql tdsodbc unixodbc-bin
The following packages will be REMOVED:
wine1.8 wine1.8-amd64 wine1.8-i386:i386
The following NEW packages will be installed:
libgsm1:i386 libodbc1 wine-stable wine-stable-amd64 wine-stable-i386:i386
winehq-stable
0 upgraded, 6 newly installed, 3 to remove and 83 not upgraded.
Need to get 0 B/47.7 MB of archives.
After this operation, 60.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
wine-stable-amd64 wine-stable-i386:i386 wine-stable winehq-stable
Install these packages without verification? [y/N] y
(Reading database ... 241410 files and directories currently installed.)
Removing wine1.8-amd64 (1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1) ...
Removing wine1.8-i386:i386 (1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1) ...
Removing wine1.8 (1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1) ...
update-binfmts: warning: no executable /usr/bin/wine found, but continuing anyway as you request
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Selecting previously unselected package libgsm1:i386.
(Reading database ... 238210 files and directories currently installed.)
Preparing to unpack .../libgsm1_1.0.13-4_i386.deb ...
Unpacking libgsm1:i386 (1.0.13-4) ...
Selecting previously unselected package wine-stable-amd64.
Preparing to unpack .../wine-stable-amd64_2.0.1~xenial_amd64.deb ...
Unpacking wine-stable-amd64 (2.0.1~xenial) ...
Selecting previously unselected package wine-stable-i386:i386.
Preparing to unpack .../wine-stable-i386_2.0.1~xenial_i386.deb ...
Unpacking wine-stable-i386:i386 (2.0.1~xenial) ...
Selecting previously unselected package wine-stable.
Preparing to unpack .../wine-stable_2.0.1~xenial_amd64.deb ...
Unpacking wine-stable (2.0.1~xenial) ...
Selecting previously unselected package libodbc1:amd64.
Preparing to unpack .../libodbc1_2.3.1-4.1_amd64.deb ...
Unpacking libodbc1:amd64 (2.3.1-4.1) ...
Selecting previously unselected package winehq-stable.
Preparing to unpack .../winehq-stable_2.0.1~xenial_amd64.deb ...
Unpacking winehq-stable (2.0.1~xenial) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libgsm1:i386 (1.0.13-4) ...
Setting up wine-stable-amd64 (2.0.1~xenial) ...
Setting up wine-stable-i386:i386 (2.0.1~xenial) ...
Setting up wine-stable (2.0.1~xenial) ...
Setting up libodbc1:amd64 (2.3.1-4.1) ...
Setting up winehq-stable (2.0.1~xenial) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
joe@joe ~ $
===
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: ERROR: Menu Icon Not Associated To Any Package

Post by dimesio »

Unless you created a separate wineprefix for Sketchup, ~/.wine IS the wineprefix, and that's what you need to delete and recreate. Uninstalling Wine won't delete any wineprefixes.

Alternatively, if you have other apps installed to ~/.wine that are working and you want to keep, you can create a separate wineprefix for Sketchup. https://wiki.winehq.org/FAQ#Can_I_store ... 2F.wine.3F
cheese
Level 1
Level 1
Posts: 9
Joined: Sat Apr 22, 2017 3:39 pm

Re: ERROR: Menu Icon Not Associated To Any Package

Post by cheese »

dimesio wrote:Unless you created a separate wineprefix for Sketchup, ~/.wine IS the wineprefix, and that's what you need to delete and recreate. Uninstalling Wine won't delete any wineprefixes.
didn't know that before.
dimesio wrote: Alternatively, if you have other apps installed to ~/.wine that are working and you want to keep, you can create a separate wineprefix for Sketchup. https://wiki.winehq.org/FAQ#Can_I_store ... 2F.wine.3F
deleted ~/.wine, created ~/.wine again by installing Wine 1.8 again, don't know how to create otherwise.
same thing.

could it be deleting ~/.wine is not enough, something is still carried over?
cheese
Level 1
Level 1
Posts: 9
Joined: Sat Apr 22, 2017 3:39 pm

Re: ERROR: Menu Icon Not Associated To Any Package

Post by cheese »

deleted ~/.wine again, but this time did not reinstall Wine.
created ~/.wine again in terminal by typing:

$wine winecfg

then installed SketchUp through Wine again.
this time, didn't get desktop icons created.
Menu -> Wine icons looked the same as before.
SketchUp didn't work.

then installed LTspice XVII through Wine again.
all desktop icons created.
Menu -> Wine LTspice icon looked the same as before.
both desktop and Menu -> Wine icons worked.
LTspice works every time.

terminal output
===
~ $ wine winecfg
wine: created the configuration directory '/home/me/.wine'
err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
err:ole:get_local_server_stream Failed: 80004002
err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
err:ole:get_local_server_stream Failed: 80004002
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
err:winediag:schan_imp_init Failed to load libgnutls, secure connections will not be available.
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
fixme:dwmapi:DwmIsCompositionEnabled 0x6d41fd70
fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0x69e6babb, context 0x892e00, init_notify 0, handle 0x122e150): stub
fixme:iphlpapi:CancelMibChangeNotify2 (handle (nil)): stub
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
err:winediag:schan_imp_init Failed to load libgnutls, secure connections will not be available.
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0x6a07afa1, context 0x923b50, init_notify 0, handle 0x11fe764): stub
fixme:iphlpapi:CancelMibChangeNotify2 (handle (nil)): stub
wine: configuration in '/home/me/.wine' has been updated.
~ $
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: ERROR: Menu Icon Not Associated To Any Package

Post by dimesio »

deleted ~/.wine, created ~/.wine again by installing Wine 1.8 again, don't know how to create otherwise.
same thing.

could it be deleting ~/.wine is not enough, something is still carried over?
Deleting ~/.wine won't delete any menu items or desktop links. You have to delete those manually. https://wiki.winehq.org/FAQ#How_do_I_wi ... llation.3F

Also, 1.8 is over a year and a half old and no longer supported. Upgrade to at least the latest stable release, and preferably to the latest development or staging version.
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
I don't know if that's the cause of this specific problem, but you do need to fix that.
cheese
Level 1
Level 1
Posts: 9
Joined: Sat Apr 22, 2017 3:39 pm

Re: ERROR: Menu Icon Not Associated To Any Package

Post by cheese »

dimesio wrote: Also, 1.8 is over a year and a half old and no longer supported. Upgrade to at least the latest stable release, and preferably to the latest development or staging version.
installed the development version.
did not get a Wine item/icon in Mint Menu.
~ $wine winecfg would bring up the cfg form though.
apps installed through Wine had no icons created at all.

nowhere to find app commands, is this normal?
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.

I don't know if that's the cause of this specific problem, but you do need to fix that.
i have the following ntlm related stuff installed,
libheimntlm0-heimdal
Heimdal Kerberos - NTLM support library

libheimntlm0-heimdal:i386
Heimdal Kerberos - NTLM support library

there are many available, but not installed, for example,
libntlm0
NTLM authentication library

libkntlm4
NTLM Authentication Library for the KDE Platform

gss-ntlmssp
GSSAPI NTLMSSP Mechanism -- MIT GSSAPI plugin

etc..

most of them have version numbers 0.x.x or 1.x.x,
only libkntlm4 for KDE has version number above 3.x.x, but in a different format 4:4.14.x

how do i tell which ntlm package i should install for Wine to work with SketchUp?
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: ERROR: Menu Icon Not Associated To Any Package

Post by dimesio »

cheese wrote: installed the development version.
did not get a Wine item/icon in Mint Menu.
~ $wine winecfg would bring up the cfg form though.
As stated on the Ubuntu wiki page:
Menu items are not created for Wine's builtin programs (winecfg, etc.), and if you are upgrading from a distro package that had added them, they will be removed. You can recreate them yourself using your menu editor.
apps installed through Wine had no icons created at all.
Winemenubuilder only creates menu items when you install something in Wine, and only does that for apps that normally create menu items in Windows. If you reinstalled the apps after deleting the menu items and they were not recreated, the problem could be this: https://wiki.winehq.org/FAQ#I_deleted_m ... et_it_back.
how do i tell which ntlm package i should install for Wine to work with SketchUp?
None of them. The package you need will be called winbind or samba-winbind or something like that, and you need both the 32 and 64 bit versions. If you need more help than that figuring it out, ask on the Mint forum; I can't really help you much with package names as I don't use Mint.
cheese
Level 1
Level 1
Posts: 9
Joined: Sat Apr 22, 2017 3:39 pm

Re: ERROR: Menu Icon Not Associated To Any Package

Post by cheese »

many tks, i quit
Locked