Ubuntu Linux 18.04.2 - aMule Search not working, except as "root user".
After upgrade from Ubuntu 16.04 to 18.04 I never was able to run aMule properly.
I've updated from Ubuntu Software center and when lunching the app it crashed as described below. Searched the installation file in internet and the result was the same. Last weekend I removed it and installed through the Terminal: sudo apt update + Sudo apt install amule. After installation I started the app in Terminal (sudo aMule) and received a message saying that for security reasons I should not run the app as root user. I ignore it and the the app worked perfectly. Whenever I start the app through the Terminal I have the same message. However, If I launch the app through the menu icon (or in the Terminal but not using 'sudo')the app starts, go to seach option and search for a given subject. The results appear but when putting the cursor over an item to select it the application crash. My questions: 1- Is there a solution for this? 2- How to avoid the "root user" in order to have the app running correctly? Thank you very much for your help. |
Can you start aMule from the terminal under your regular user account, and paste what it outputs to the terminal with the [CODE] tag?
|
Quote:
1 - The following output is when I use Terminal and 'sudo' command to get aMule working correctly. (I'm sorry it is in portuguese). artur@artur-ThinkPad-T400:~$ sudo amule [sudo] senha para artur: 2019-01-02 11:50:20: Initialising aMule 2.3.2 compiled with wxGTK2 v3.0.3 and Boost 1.65 2019-01-02 11:50:20: Checking if there is an instance already running... 2019-01-02 11:50:20: No other instances are running. -------------------------------------------------- Warning! You are running aMule as root. Doing so is not recommended for security reasons, and you are advised to run aMule as an normal user instead. -------------------------------------------------- 2019-01-02 11:50:37: ListenSocket: Ok. 2019-01-02 11:50:37: A carregar ficheiros temporários de /home/artur/.aMule/Temp. 2019-01-02 11:50:37: A carregar Ficheiro Parcial 1 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 2 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 3 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 4 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 5 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 6 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 7 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 8 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 9 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 10 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 11 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 12 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 13 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 14 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 15 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 16 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 17 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 18 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 19 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 20 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 21 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 22 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 23 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 24 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 25 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 26 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 27 de 28 2019-01-02 11:50:37: A carregar Ficheiro Parcial 28 de 28 2019-01-02 11:50:37: Carregados Todos os Ficheiros Parciais. 2019-01-02 11:50:37: A adicionar ficheiro /home/artur/.aMule/Temp/016.part.met à partilha 2019-01-02 11:50:38: Asio thread 2 started 2019-01-02 11:50:38: Asio thread 1 started 2019-01-02 11:50:38: Asio thread 4 started 2019-01-02 11:50:38: Asio thread 3 started 2019-01-02 11:52:53: A fechar a aplicação... 2019-01-02 11:52:53: aMule OnExit: A terminar núcleo. 2019-01-02 11:52:53: A gravar Ficheiro Parcial 1 de 29 2019-01-02 11:52:53: A gravar Ficheiro Parcial 2 de 29 2019-01-02 11:52:53: A gravar Ficheiro Parcial 3 de 29 2019-01-02 11:52:53: A gravar Ficheiro Parcial 4 de 29 2019-01-02 11:52:53: A gravar Ficheiro Parcial 5 de 29 2019-01-02 11:52:53: A gravar Ficheiro Parcial 6 de 29 2019-01-02 11:52:53: A gravar Ficheiro Parcial 7 de 29 2019-01-02 11:52:53: A gravar Ficheiro Parcial 8 de 29 2019-01-02 11:52:53: A gravar Ficheiro Parcial 9 de 29 2019-01-02 11:52:54: A gravar Ficheiro Parcial 10 de 29 2019-01-02 11:52:54: A gravar Ficheiro Parcial 11 de 29 2019-01-02 11:52:54: A gravar Ficheiro Parcial 12 de 29 2019-01-02 11:52:54: A gravar Ficheiro Parcial 13 de 29 2019-01-02 11:52:54: A gravar Ficheiro Parcial 14 de 29 2019-01-02 11:52:54: A gravar Ficheiro Parcial 15 de 29 2019-01-02 11:52:54: A gravar Ficheiro Parcial 16 de 29 2019-01-02 11:52:54: A gravar Ficheiro Parcial 17 de 29 2019-01-02 11:52:54: A gravar Ficheiro Parcial 18 de 29 2019-01-02 11:52:54: A gravar Ficheiro Parcial 19 de 29 2019-01-02 11:52:54: A gravar Ficheiro Parcial 20 de 29 2019-01-02 11:52:55: A gravar Ficheiro Parcial 21 de 29 2019-01-02 11:52:55: A gravar Ficheiro Parcial 22 de 29 2019-01-02 11:52:55: A gravar Ficheiro Parcial 23 de 29 2019-01-02 11:52:55: A gravar Ficheiro Parcial 24 de 29 2019-01-02 11:52:55: A gravar Ficheiro Parcial 25 de 29 2019-01-02 11:52:55: A gravar Ficheiro Parcial 26 de 29 2019-01-02 11:52:55: A gravar Ficheiro Parcial 27 de 29 2019-01-02 11:52:55: A gravar Ficheiro Parcial 28 de 29 2019-01-02 11:52:55: A gravar Ficheiro Parcial 29 de 29 2019-01-02 11:52:55: Todos os Ficheiros Parciais Gravados. 2019-01-02 11:52:55: aMule terminado. artur@artur-ThinkPad-T400:~$ 2 - This second output is when I use Terminal without 'sudo' or when I start the application clicking in the desktop icon. The application behaviour is the same: it fails when in Search I put the cursor or click in a item of the search result. artur@artur-ThinkPad-T400:~$ amule 2019-01-02 11:56:21: Initialising aMule 2.3.2 compiled with wxGTK2 v3.0.3 and Boost 1.65 2019-01-02 11:56:21: Checking if there is an instance already running... 2019-01-02 11:56:21: No other instances are running. 2019-01-02 11:56:21: ListenSocket: Ok. 2019-01-02 11:56:22: A carregar ficheiros temporários de /home/artur/.aMule/Temp. 2019-01-02 11:56:22: A carregar Ficheiro Parcial 1 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 2 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 3 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 4 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 5 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 6 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 7 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 8 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 9 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 10 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 11 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 12 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 13 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 14 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 15 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 16 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 17 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 18 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 19 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 20 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 21 de 29 !2019-01-02 11:56:22: ERROR: Failed to load PartFile '021.part.met' 2019-01-02 11:56:22: A carregar Ficheiro Parcial 22 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 23 de 29 2019-01-02 11:56:22: A carregar Ficheiro Parcial 24 de 29 !2019-01-02 11:56:22: ERROR: Failed to load PartFile '024.part.met' 2019-01-02 11:56:22: A carregar Ficheiro Parcial 25 de 29 !2019-01-02 11:56:22: ERROR: Failed to load PartFile '025.part.met' 2019-01-02 11:56:22: A carregar Ficheiro Parcial 26 de 29 !2019-01-02 11:56:22: ERROR: Failed to load PartFile '026.part.met' 2019-01-02 11:56:22: A carregar Ficheiro Parcial 27 de 29 !2019-01-02 11:56:22: ERROR: Failed to load PartFile '027.part.met' 2019-01-02 11:56:22: A carregar Ficheiro Parcial 28 de 29 !2019-01-02 11:56:22: ERROR: Failed to load PartFile '028.part.met' 2019-01-02 11:56:22: A carregar Ficheiro Parcial 29 de 29 !2019-01-02 11:56:22: ERROR: Failed to load PartFile '029.part.met' 2019-01-02 11:56:22: Carregados Todos os Ficheiros Parciais. 2019-01-02 11:56:22: A adicionar ficheiro /home/artur/.aMule/Temp/016.part.met à partilha 2019-01-02 11:56:22: Asio thread 1 started 2019-01-02 11:56:22: Asio thread 4 started 2019-01-02 11:56:22: Asio thread 3 started 2019-01-02 11:56:22: Asio thread 2 started Falha de segmentação (imagem do núcleo gravada) artur@artur-ThinkPad-T400:~$ Thank you. |
Just a note, Acampos, that you didn't use CODE tags for your output as requested (see https://www.linuxquestions.org/quest...og.php?b=36313), and also that you should be able to force your output to English by prefixing the command with LC_ALL=c, e.g.
Code:
LC_ALL=c amule |
Quote:
1 - The following output is when I use Terminal and 'sudo' command to get aMule working correctly. Code:
artur@artur-ThinkPad-T400:~$ sudo amule 2 - This second output is when I use Terminal without 'sudo' or when I start the application clicking in the desktop icon. The application behaviour is the same: it fails when in Search I put the cursor or click in a item of the search result. Code:
artur@artur-ThinkPad-T400:~$ amule |
It hiccups when loading "PartFile" 16 and 21 - do you have full access rights/permissions for the directory "/home/artur/.aMule/Temp"? That could explain why it works in root but not your normal user account
|
Quote:
In my Pc there is only 1 user (myself). Following is a list with the files in Temp directory and my permissions: Code:
artur@artur-ThinkPad-T400:~$ ls -la /home/artur/.aMule/Temp Thank you. Artur |
When the .part file permissions for the part file are -rw-rw-r-- and the owner is set to arthur, the file won't throw an error under the regular user account.
When the .part file permissions are -rw-r--r-- and the owner is set to root, an error ensues. Here's a nice little guide (it's a wiki page for Arch Linux, but it won't be any different on Ubuntu) on how to change the permissions (chmod) and owner (chown): https://wiki.archlinux.org/index.php...and_attributes |
Quote:
Good document. I follow your suggestion and following are the results: 1- To change the ownership of the problematic files: Code:
artur@artur-ThinkPad-T400:/$ sudo sudo chown artur:artur /home/artur/.aMule/Temp/025.part Code:
artur@artur-ThinkPad-T400:/$ sudo sudo chmod g=rw /home/artur/.aMule/Temp/025.part Code:
artur@artur-ThinkPad-T400:~$ ls -la /home/artur/.aMule/Temp 1- With 'sudo amule': Code:
artur@artur-ThinkPad-T400:~$ sudo amule Code:
artur@artur-ThinkPad-T400:~$ amule Thank you. PS. What about to do a clean uninstall of aMule, removing fully the app, restart Ubuntu and make a new installation? |
Quote:
|
Quote:
I've made a complete uninstallation:
Unfortunately the result is the same, this is, aMule only works via Terminal and 'sudo' command. Code:
artur@artur-ThinkPad-T400:~$ ls -la /home/artur/.aMule/Temp Code:
artur@artur-ThinkPad-T400:~$ sudo amule Code:
artur@artur-ThinkPad-T400:~$ amule Best regards, Artur |
This bugger really won't give up.
Have you tried "rm -r ~/.aMule" (completely clearing your configuration in your home directory? (be sure that you don't have any data you want to keep there, consider backing up) I would also try setting up another user profile and see if it runs there. Have you looked into the program's documentation about Ubuntu 18.04 or any potential effects of library upgrades? |
do NOT run amule as root!!!!!!!!!
everytime you do it, you mess up your permissions again. it is also insanely insecure to run any internet app as root!!!!!!! you have to fix the permissions for ALL files that are now root:root, under your home folder. ALL of them: Code:
find "$HOME" -group root if it looks ok, do this: Code:
find "$HOME" -group root -exec sudo chown artur:artur {} \; |
Quote:
I followed step by step the suggestions that both of you posted above. Including the creation of a new normal User and a new installation. The result is the same as described before. Best regards. |
At this point I'd try a new Ubuntu installation or maybe set up a virtual machine of Ubuntu 16.04 and run it in there. And definitely look into potential bugs in Ubuntu 18.04, amule's dependent libraries, and amule itself.
|
Quote:
Thank you for your help, Wagscat123. Artur |
I can see that - sometimes it's not worth the fight, although if you ever change your mind, VirtualBox is pretty easy to set up.
Ubuntu removed the 64 bit Live install image for 18.04, although there's still an advanced server setup. Although it sounds you're probably not going to need to re-install Ubuntu if you get aMule under Windows, if you do reinstall Ubuntu for some reason, the 64 bit edition would be slightly heavier but probably more well tested than the last few 32 bit versions and safe to install. In 2019, it's the opposite of 2009 - 64 bit is generally more stable and supported now. Best of luck, and thanks for reaching out to LQ! |
Quote:
But i'm not using ubuntu. |
All times are GMT -5. The time now is 04:00 PM. |