Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 14 Dec 2019, 22:17
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Can't uninstall Amule
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [28 Posts]   Goto page: Previous 1, 2
Author Message
mikeslr


Joined: 16 Jun 2008
Posts: 3548
Location: 500 seconds from Sol

PostPosted: Fri 25 Oct 2019, 22:09    Post subject:  

Hi MrAccident,

I don't know why it doesn't show up in Puppy Package Manager. "Murphy's Law?" Laughing

Be that as it may, removing it is easy. But before doing so you want to make certain that Puppy will know it's gone so that you can re-install it. Otherwise Puppy probably will tell you it's already installed and won't let you.

See my post above about examining and deleting the files in /root/.packages -- note the "."/dot. Maybe also look in /var/log, especially /var/log/packages. [Some Puppies write info here. I think that may only apply to debian and ubuntu packages. But, looking can't hurt.]

After deleting any references from the above, just delete the files you reported in your last post. You can probably get away with just deleting these:

/root/.aMule
/root/.aMule/amule.conf
/root/.local/share/geeqie/metadata/mnt/sda5/Program Files D/Amule
/usr/local/bin/amule

The last is the executable. The first two are (1) the folder which contains (2) amule's configuration file.

I don't think that "/root/.local/share/geeqie/metadata/mnt/sda5/Program Files D/Amule" is actually an amule file. I think, rather, that it was used by the geegle application to store information about /sda4/Program Files D/Amule.

The rest will likely be overwritten when (if*) you reinstall amule.

*If: Frankly, since you're running Wine and emule under it anyway, you may want to run the Windows version I referenced previously. It's only the 2.3.1 version. The latest (2.3.2) is a "minor" upgrade --otherwise it would be 2.4 or 3.x. And it might require compiling. Also while 'googling' I ran across posts by people having problems with 2.3.2. Besides, I like portable versions. When an upgrade becomes available you can try it without overwriting the prior-functional version; and if necessary revert to the latter. Lastly, upgrades usually show up in Windows before Linux.

But keep in mind that some people don't like to run Wine or will avoid it if they can, especially for anything which has to do with the Web. Remember, Wine expects your operating system to provide security (anti-malware).
Back to top
View user's profile Send private message 
MrAccident

Joined: 31 Mar 2014
Posts: 293

PostPosted: Sat 26 Oct 2019, 01:08    Post subject:  

@mikeslr -
Quote:
why it doesn't show up in Puppy Package Manager
― it's not there - because I uninstalled it; it was there before.
Anyway - I don't think it's Murphy's Law ― I think it's Mr. Accident law. Very Happy

OK, everything works. And I think I understood the problem ― the Temp folder got corrupted. Now I can't delete it; I did move it to another place, and created a new Temp folder in Amule's folder.
So how to delete a corrupt\undeletable folder? (the files also can't be deleted)
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 3548
Location: 500 seconds from Sol

PostPosted: Sat 26 Oct 2019, 10:42    Post subject:  

Hi again, MrAccident,

Glad you got Amuleworking.

How to get rid of an undeletable folder is a different problem. Suggest you open a new thread. Not the least reason being that I really don't have any good ideas and starting a thread identifying the problem may draw the attention of someone who does.

I've had superficially a similar problem a couple of times; a file which wouldn't delete. But in my case I couldn't even move it. I don't recall if I had to move everything else and reformat the partition; or "EVERYTHING ELSE" and create a new Partition Table (which wipes everything from the entire drive). As I said, I don't have any good ideas.

Maybe boot 'pfix=ram' or from another Puppy and try?
Back to top
View user's profile Send private message 
perdido


Joined: 09 Dec 2013
Posts: 1445
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Sat 26 Oct 2019, 13:15    Post subject:  

mikeslr wrote:

How to get rid of an undeletable folder is a different problem.


That folder might have the immutable bit set. The immutable bit keeps files and directories from being deleted.
You can manually change the immutable bit to delete those files and directories.
https://www.tecmint.com/chattr-command-examples/

To reset the immutable bit open a terminal window in the directory containing the file or directory and run the chattr command (chattr is change attribute)

+i adds the immutable attribute
-i removes the immutable attribute

Example of removing the immutable attribute from a file named your-file
chattr -i your-file
------------------------------------------
Example of removing the immutable attribute from a directory named your-directory
chattr -i your-directory

It works on both files and directories.

.
Back to top
View user's profile Send private message 
MrAccident

Joined: 31 Mar 2014
Posts: 293

PostPosted: Sun 27 Oct 2019, 01:21    Post subject:  

@perdido - tried 3 times, and I'll put the Terminal text - combined for all the attempts. First tried for the folder "Temp" ― so I opened Terminal in the folder containing "Temp" - which is "Program Files D", Then opened Terminal in the "Temp" folder - for one of the files - with 2 attempts: first by its name; then by its whole path. Non worked.
Code:

# chattr -i Temp
chattr: Inappropriate ioctl for device while reading flags on Temp
# chattr -i 001.part
chattr: Function not implemented while reading flags on 001.part
# chattr -i /mnt/sda5/Program Files D/Temp/001.part
chattr: No such file or directory while trying to stat /mnt/sda5/Program
chattr: No such file or directory while trying to stat Files
chattr: No such file or directory while trying to stat D/Temp/001.part
#
 
Back to top
View user's profile Send private message 
perdido


Joined: 09 Dec 2013
Posts: 1445
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Sun 27 Oct 2019, 05:51    Post subject:  

MrAccident wrote:
@perdido - tried 3 times, and I'll put the Terminal text - combined for all the attempts. First tried for the folder "Temp" ― so I opened Terminal in the folder containing "Temp" - which is "Program Files D", Then opened Terminal in the "Temp" folder - for one of the files - with 2 attempts: first by its name; then by its whole path. Non worked.
Code:

# chattr -i Temp
chattr: Inappropriate ioctl for device while reading flags on Temp
# chattr -i 001.part
chattr: Function not implemented while reading flags on 001.part
# chattr -i /mnt/sda5/Program Files D/Temp/001.part
chattr: No such file or directory while trying to stat /mnt/sda5/Program
chattr: No such file or directory while trying to stat Files
chattr: No such file or directory while trying to stat D/Temp/001.part
#
 


Hi MrAccident,
# chattr -i Temp
chattr: Inappropriate ioctl for device while reading flags on Temp

# chattr -i 001.part
chattr: Function not implemented while reading flags on 001.part


Don't know the answer for those two errors
---
The other errors (chattr: No such file or directory) were just wrong path to the file.

I don't think chattr will work on symlinks or windows file systems.
Plus some system files will return that error.
Good try anyway.

Best I can suggest is boot from a different puppy and try it again, I had success doing that on stubborn system files.
Better suggestions needed if a try with a different puppy fails.

.
Back to top
View user's profile Send private message 
MrAccident

Joined: 31 Mar 2014
Posts: 293

PostPosted: Sun 27 Oct 2019, 07:27    Post subject:  

OK, if that won't work - I'll make a new thread.
Thank you all.
Back to top
View user's profile Send private message 
williams2

Joined: 14 Dec 2018
Posts: 215

PostPosted: Sun 27 Oct 2019, 14:22    Post subject:  

What error messages do you get if you try to delete
one of the files from a console?
Show the file you want to delete in a rox window,
then press ` (backtick) to open a console window.
Or right click the rox window, and select
Window, Terminal Here.
Code:
ls -lh 001.part
rm 001.part


Sometimes a file can be created with a name that
contains characters that cause trouble in that file system.

If it is a MS Windows ntfs file system you could try
checking and repairing the file system.

If it is an ext2/3/4 file system you can try a file system check (fsck).
The file system should first be unmounted.

If it is the file system Puppy is using for the operating system files,
you need to start Puppy using pfix=fsck
Back to top
View user's profile Send private message 
MrAccident

Joined: 31 Mar 2014
Posts: 293

PostPosted: Mon 28 Oct 2019, 00:45    Post subject:  

@williams2:
It's NTFS.
Code:
# ls -lh 001.part
-rwxrwxrwx 2 root root 58M May 16  2018 001.part
# rm 001.part
rm: cannot remove ‘001.part’: Input/output error
#

Another thing I noticed ― when the window just opens - there are more files - which disappear right away; and also appear\disappear - every time I click on refresh. These are consecutive files after the visible, by their name; so the last visible are 2 files starting with "006.part"...; and the ones invisible (even with clicking the eye symbol) ― are 5 files for "007.part"... and "008.part"...
Quote:
...characters that cause trouble in that file system...
The first visible file name is "00皼.part.met.bak".
It's also impossible to create a file in that folder.
It's not Puppy's file-system.
Back to top
View user's profile Send private message 
williams2

Joined: 14 Dec 2018
Posts: 215

PostPosted: Mon 28 Oct 2019, 03:01    Post subject:  

input/output errors are often hardware problems,
like a bad sector, or a defective usb port.

Assuming it is an NTFS file system:

I would boot ms Windows and run the filesytem repair program.
Running chkdsk in a dos box might be better.
If there are files with illegal file names,
the repair program should move the files to .found000

Then I would try deleting the problem files from Windows.

You might try renaming the file first.

You could try copying the file somewhere.
Sometimes it helps to read all of the bytes in the file
if the drive has a bad sector.

Running Windows chkdsk with the check bad sectors option might help.

"00皼.part.met.bak" does look like it might be an illegal name.

One of the usb ports on my laptop disconnects the flash drive
sometimes, giving an input/output error.
I avoid using that usb port.

The file permissions look ok.

dmesg in a console might show a helpful error message,
if it's a hardware problem.

You could try renaming a file like this,
if you can't type in the filename:
Code:
mv 00*.part.met.bak 001.part.met.bak

(assuming there is only 1 file named 00*.part.met.bak)

You could try testing your drive using smartctl (Smartmontools).

Does the rest of the drive work properly,
or are there other files that don't work right?
Back to top
View user's profile Send private message 
MrAccident

Joined: 31 Mar 2014
Posts: 293

PostPosted: Mon 28 Oct 2019, 03:18    Post subject:  

@williams2 - using your code;
Code:
# mv 00*.part.met.bak 001.part.met.bak
mv: target ‘001.part.met.bak’ is not a directory
BTW - I did rename and move the folder; so it's probably the files that are the problem.
The rest of the drive works fine. I'll just leave it as is (just 450mb of 1TB); I want to buy a new computer anyway; and it may be soon.
Anyway - I tried to rename it normally - and here's the result:
Code:
Moving /mnt/sda5/to delete/00皼.part.met.bak as /mnt/sda5/to delete/f.part.met.bak
mv: cannot move ‘/mnt/sda5/to delete/00皼.part.met.bak’ to ‘/mnt/sda5/to delete/f.part.met.bak’: Input/output error
Failed to move /mnt/sda5/to delete/00皼.part.met.bak as /mnt/sda5/to delete/f.part.met.bak

Done
There was one error.
Back to top
View user's profile Send private message 
williams2

Joined: 14 Dec 2018
Posts: 215

PostPosted: Mon 28 Oct 2019, 13:38    Post subject:  

If that directory has an illegal name,
then you probably can not access any file in the directory.

If it's an ntfs file system, you should use MS Windows
to repair the drive, if you can.

There is a program ntfsfix but I think it only resets the clean flag,
I don't think it actually repairs the file system.
I'm not really sure.

Sometimes a program can create a file or dir with an illegal name.

Or it could be hardware.
If it's hardware, your drive might be near it's end of life.
You might think about backing up any files you want to keep.

There are programs you can run to test your drive.
Back to top
View user's profile Send private message 
MrAccident

Joined: 31 Mar 2014
Posts: 293

PostPosted: Tue 29 Oct 2019, 00:46    Post subject:  

@ williams2 -
Quote:
There are programs you can run to test your drive.
Haven't thought of that; will try.
Thanks.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [28 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0882s ][ Queries: 11 (0.0262s) ][ GZIP on ]