Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.0 possible errors during uninstall #24

Open
flatsiedatsie opened this issue Jun 5, 2019 · 3 comments
Open

1.0.0 possible errors during uninstall #24

flatsiedatsie opened this issue Jun 5, 2019 · 3 comments

Comments

@flatsiedatsie
Copy link

After a seemingly unsuccesful install (see other issue, I haven't actually tried using it after seeing the errors) I thought I'd try uninstalling, cleaning up Snips again as per your earlier instructions, and then doing a reinstall with libev4 manually installed before starting the re-install.

Here are some things I noticed in the internal log during the uninstall:

Immediately it starts with an "unloaded addon undefined".

2019-06-05 09:52:35.125 INFO   : Unloading VoiceAdapter
2019-06-05 09:52:35.143 INFO   : voice-addon: unloaded addon undefined
2019-06-05 09:52:35.517 INFO   : voice-addon: Error executing install_script.sh dpkg: libportaudio2:armhf: dependency problems, but removing anyway as you requested:
2019-06-05 09:52:35.521 INFO   : voice-addon:  python-pyaudio depends on libportaudio2 (>= 19+svn20101113).
2019-06-05 09:52:35.524 INFO   : voice-addon: 
2019-06-05 09:52:35.527 INFO   : voice-addon: 
2019-06-05 09:52:35.636 INFO   : voice-addon: DATA snips_uninstall: (Reading database ... 75513 files and directories currently installed.)
2019-06-05 09:52:35.640 INFO   : voice-addon: 
2019-06-05 09:52:35.656 INFO   : voice-addon: DATA snips_uninstall: Removing libportaudio2:armhf (19.6.0-1) ...
2019-06-05 09:52:35.659 INFO   : voice-addon: 
2019-06-05 09:52:35.858 INFO   : voice-addon: DATA snips_uninstall: Processing triggers for libc-bin (2.24-11+deb9u4) ...
2019-06-05 09:52:35.860 INFO   : voice-addon: 
2019-06-05 09:52:36.562 INFO   : voice-addon: Error executing install_script.sh dpkg: python-ply: dependency problems, but removing anyway as you requested:
2019-06-05 09:52:36.565 INFO   : voice-addon:  python-pycparser depends on python-ply-lex-3.8; however:
2019-06-05 09:52:36.567 INFO   : voice-addon:   Package python-ply-lex-3.8 is not installed.
2019-06-05 09:52:36.569 INFO   : voice-addon:   Package python-ply which provides python-ply-lex-3.8 is to be removed.
2019-06-05 09:52:36.571 INFO   : voice-addon:  python-pycparser depends on python-ply-yacc-3.8; however:
2019-06-05 09:52:36.573 INFO   : voice-addon:   Package python-ply-yacc-3.8 is not installed.
2019-06-05 09:52:36.574 INFO   : voice-addon:   Package python-ply which provides python-ply-yacc-3.8 is to be removed.
2019-06-05 09:52:36.576 INFO   : voice-addon:  python-pycparser depends on python-ply-lex-3.8; however:
2019-06-05 09:52:36.577 INFO   : voice-addon:   Package python-ply-lex-3.8 is not installed.
2019-06-05 09:52:36.579 INFO   : voice-addon:   Package python-ply which provides python-ply-lex-3.8 is to be removed.
2019-06-05 09:52:36.581 INFO   : voice-addon:  python-pycparser depends on python-ply-yacc-3.8; however:
2019-06-05 09:52:36.582 INFO   : voice-addon:   Package python-ply-yacc-3.8 is not installed.
2019-06-05 09:52:36.584 INFO   : voice-addon:   Package python-ply which provides python-ply-yacc-3.8 is to be removed.
2019-06-05 09:52:36.586 INFO   : voice-addon: 
2019-06-05 09:52:36.587 INFO   : voice-addon: 
2019-06-05 09:52:36.646 INFO   : voice-addon: DATA snips_uninstall: (Reading database ... 75507 files and directories currently installed.)
2019-06-05 09:52:36.648 INFO   : voice-addon: 
2019-06-05 09:52:36.666 ERROR  : voice-addon: problem with request: connect ECONNREFUSED 127.0.0.1:4443
2019-06-05 09:52:36.669 INFO   : voice-addon: DATA snips_uninstall: Removing python-ply (3.9-1) ...
2019-06-05 09:52:36.670 INFO   : voice-addon: 
2019-06-05 09:52:37.276 INFO   : voice-addon: DATA snips_uninstall: Processing triggers for man-db (2.7.6.1-2) ...
2019-06-05 09:52:37.278 INFO   : voice-addon: 
2019-06-05 09:52:38.491 INFO   : voice-addon: Error executing install_script.sh dpkg: python-pycparser: dependency problems, but removing anyway as you requested:
2019-06-05 09:52:38.493 INFO   : voice-addon:  python-cffi depends on python-pycparser.

and then later:

2019-06-05 09:54:35.150 ERROR  : Failed to uninstall add-on: voice-addon
Error: ENOENT: no such file or directory, lstat '/home/pi/.mozilla-iot/addons/voice-addon'
@flatsiedatsie
Copy link
Author

flatsiedatsie commented Jun 5, 2019

htop does not show any Snips leftovers running, to that's already great. Snips also does not show any sign of still being present when doing the manual removal, although it does mention some other things at the end:

pi@gateway:~/.mozilla-iot/addons $ sudo apt-get remove snips*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'snips-hotword-ffi' for glob 'snips*'
Note, selecting 'snips-makers-tts' for glob 'snips*'
Note, selecting 'snips-tts' for glob 'snips*'
Note, selecting 'snips-audio-server' for glob 'snips*'
Note, selecting 'snips-audio-client' for glob 'snips*'
Note, selecting 'snips-pegasus' for glob 'snips*'
Note, selecting 'snips-asr-model-en-500mb' for glob 'snips*'
Note, selecting 'snips-asr-injection-service' for glob 'snips*'
Note, selecting 'snipsmanager' for glob 'snips*'
Note, selecting 'snips-platform-demo' for glob 'snips*'
Note, selecting 'snips-satellite' for glob 'snips*'
Note, selecting 'snips-asr-service' for glob 'snips*'
Note, selecting 'snips-platform-voice' for glob 'snips*'
Note, selecting 'snips-asr-injection' for glob 'snips*'
Note, selecting 'snips-template' for glob 'snips*'
Note, selecting 'snips-injection' for glob 'snips*'
Note, selecting 'snips-kaldi-atlas' for glob 'snips*'
Note, selecting 'snips-analytics' for glob 'snips*'
Note, selecting 'snips-megazord' for glob 'snips*'
Note, selecting 'snips-skill-server' for glob 'snips*'
Note, selecting 'snips-asr' for glob 'snips*'
Note, selecting 'snips-hotword' for glob 'snips*'
Note, selecting 'snips-queries' for glob 'snips*'
Note, selecting 'snips-dialogue' for glob 'snips*'
Note, selecting 'snips-platform-common' for glob 'snips*'
Note, selecting 'snips-asr-google' for glob 'snips*'
Note, selecting 'snips-hotword-model-heysnipsv4' for glob 'snips*'
Note, selecting 'snips-watch' for glob 'snips*'
Note, selecting 'snips-nlu' for glob 'snips*'
Note, selecting 'snips-kaldi' for glob 'snips*'
Note, selecting 'snips-kaldi-atlas' instead of 'snips-kaldi'
Note, selecting 'snips-asr-injection' instead of 'snips-asr-injection-service'
Package 'snips-asr-model-en-500mb' is not installed, so not removed
Package 'snips-audio-client' is not installed, so not removed
Package 'snipsmanager' is not installed, so not removed
Package 'snips-queries' is not installed, so not removed
Package 'snips-asr-injection' is not installed, so not removed
Package 'snips-kaldi-atlas' is not installed, so not removed
Package 'snips-analytics' is not installed, so not removed
Package 'snips-asr-google' is not installed, so not removed
Package 'snips-injection' is not installed, so not removed
Package 'snips-asr' is not installed, so not removed
Package 'snips-audio-server' is not installed, so not removed
Package 'snips-dialogue' is not installed, so not removed
Package 'snips-hotword-ffi' is not installed, so not removed
Package 'snips-hotword' is not installed, so not removed
Package 'snips-makers-tts' is not installed, so not removed
Package 'snips-nlu' is not installed, so not removed
Package 'snips-platform-common' is not installed, so not removed
Package 'snips-platform-demo' is not installed, so not removed
Package 'snips-platform-voice' is not installed, so not removed
Package 'snips-skill-server' is not installed, so not removed
Package 'snips-template' is not installed, so not removed
Package 'snips-tts' is not installed, so not removed
Package 'snips-watch' is not installed, so not removed
Package 'snips-megazord' is not installed, so not removed
Package 'snips-satellite' is not installed, so not removed
Package 'snips-pegasus' is not installed, so not removed
Package 'snips-hotword-model-heysnipsv4' is not installed, so not removed
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 python-cffi : Depends: python-pycparser but it is not going to be installed
 python-pyaudio : Depends: libportaudio2 (>= 19+svn20101113) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

@flatsiedatsie
Copy link
Author

flatsiedatsie commented Jun 5, 2019

A second uninstall, after having manually helped the install along, gave "Error executing install_script.sh sh: 0: getcwd() failed: No such file or directory":

2019-06-05 12:35:27.016 INFO   : Unloading VoiceAdapter
2019-06-05 12:35:27.032 INFO   : voice-addon: unloaded addon undefined
2019-06-05 12:35:27.078 ERROR  : voice-addon: problem with request: connect ECONNREFUSED 127.0.0.1:4443
2019-06-05 12:35:27.351 INFO   : voice-addon: Error executing install_script.sh dpkg: libportaudio2:armhf: dependency problems, but removing anyway as you requested:
2019-06-05 12:35:27.353 INFO   : voice-addon:  snips-watch depends on libportaudio2.
2019-06-05 12:35:27.354 INFO   : voice-addon:  python-pyaudio depends on libportaudio2 (>= 19+svn20101113).
2019-06-05 12:35:27.356 INFO   : voice-addon:  snips-audio-server depends on libportaudio2.
2019-06-05 12:35:27.358 INFO   : voice-addon: 
2019-06-05 12:35:27.360 INFO   : voice-addon: 
2019-06-05 12:35:27.477 INFO   : voice-addon: DATA snips_uninstall: (Reading database ... 75604 files and directories currently installed.)
2019-06-05 12:35:27.479 INFO   : voice-addon: 
2019-06-05 12:35:27.499 INFO   : voice-addon: DATA snips_uninstall: Removing libportaudio2:armhf (19.6.0-1) ...
2019-06-05 12:35:27.501 INFO   : voice-addon: 
2019-06-05 12:35:27.596 INFO   : voice-addon: DATA snips_uninstall: Processing triggers for libc-bin (2.24-11+deb9u4) ...
2019-06-05 12:35:27.598 INFO   : voice-addon: 
2019-06-05 12:35:28.295 INFO   : voice-addon: Error executing install_script.sh dpkg: python-ply: dependency problems, but removing anyway as you requested:
2019-06-05 12:35:28.297 INFO   : voice-addon:  python-pycparser depends on python-ply-lex-3.8; however:
2019-06-05 12:35:28.299 INFO   : voice-addon:   Package python-ply-lex-3.8 is not installed.
2019-06-05 12:35:28.300 INFO   : voice-addon:   Package python-ply which provides python-ply-lex-3.8 is to be removed.
2019-06-05 12:35:28.302 INFO   : voice-addon:  python-pycparser depends on python-ply-yacc-3.8; however:
2019-06-05 12:35:28.303 INFO   : voice-addon:   Package python-ply-yacc-3.8 is not installed.
2019-06-05 12:35:28.306 INFO   : voice-addon:   Package python-ply which provides python-ply-yacc-3.8 is to be removed.
2019-06-05 12:35:28.308 INFO   : voice-addon:  python-pycparser depends on python-ply-lex-3.8; however:
2019-06-05 12:35:28.309 INFO   : voice-addon:   Package python-ply-lex-3.8 is not installed.
2019-06-05 12:35:28.311 INFO   : voice-addon:   Package python-ply which provides python-ply-lex-3.8 is to be removed.
2019-06-05 12:35:28.313 INFO   : voice-addon:  python-pycparser depends on python-ply-yacc-3.8; however:
2019-06-05 12:35:28.315 INFO   : voice-addon:   Package python-ply-yacc-3.8 is not installed.
2019-06-05 12:35:28.318 INFO   : voice-addon:   Package python-ply which provides python-ply-yacc-3.8 is to be removed.
2019-06-05 12:35:28.320 INFO   : voice-addon: 
2019-06-05 12:35:28.322 INFO   : voice-addon: 
2019-06-05 12:35:28.424 INFO   : voice-addon: DATA snips_uninstall: (Reading database ... 75598 files and directories currently installed.)
2019-06-05 12:35:28.428 INFO   : voice-addon: 
2019-06-05 12:35:28.453 INFO   : voice-addon: DATA snips_uninstall: Removing python-ply (3.9-1) ...
2019-06-05 12:35:28.456 INFO   : voice-addon: 
2019-06-05 12:35:28.950 INFO   : voice-addon: DATA snips_uninstall: Processing triggers for man-db (2.7.6.1-2) ...
2019-06-05 12:35:28.952 INFO   : voice-addon: 
2019-06-05 12:35:29.929 INFO   : voice-addon: Error executing install_script.sh dpkg: python-pycparser: dependency problems, but removing anyway as you requested:
2019-06-05 12:35:29.931 INFO   : voice-addon:  python-cffi depends on python-pycparser.
2019-06-05 12:35:29.934 INFO   : voice-addon: 
2019-06-05 12:35:29.936 INFO   : voice-addon: 
2019-06-05 12:35:30.046 INFO   : voice-addon: DATA snips_uninstall: (Reading database ... 75579 files and directories currently installed.)
2019-06-05 12:35:30.048 INFO   : voice-addon: 
2019-06-05 12:35:30.049 INFO   : voice-addon: DATA snips_uninstall: Removing python-pycparser (2.17-2) ...
2019-06-05 12:35:30.050 INFO   : voice-addon: 
2019-06-05 12:35:30.680 INFO   : voice-addon: Error executing install_script.sh sh: 0: getcwd() failed: No such file or directory
2019-06-05 12:35:30.682 INFO   : voice-addon: 

@flatsiedatsie
Copy link
Author

I tried to see what would happen if I issues a fix command after the uninstall failed:

pi@gateway:~ $ sudo apt --fix-broken install
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
pi@gateway:~ $ sudo dpkg --configure -a
pi@gateway:~ $ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libatlas-dev libblas-dev
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libportaudio2 python-ply python-pycparser
Suggested packages:
  python-ply-doc
The following NEW packages will be installed:
  libportaudio2 python-ply python-pycparser
0 upgraded, 3 newly installed, 0 to remove and 30 not upgraded.
Need to get 0 B/184 kB of archives.
After this operation, 909 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package libportaudio2:armhf.
(Reading database ... 75446 files and directories currently installed.)
Preparing to unpack .../libportaudio2_19.6.0-1_armhf.deb ...
Unpacking libportaudio2:armhf (19.6.0-1) ...
Selecting previously unselected package python-ply.
Preparing to unpack .../python-ply_3.9-1_all.deb ...
Unpacking python-ply (3.9-1) ...
Selecting previously unselected package python-pycparser.
Preparing to unpack .../python-pycparser_2.17-2_all.deb ...
Unpacking python-pycparser (2.17-2) ...
Setting up libportaudio2:armhf (19.6.0-1) ...
Setting up python-ply (3.9-1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up python-pycparser (2.17-2) ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant