WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Bug in APP while removing an application  (Read 1942 times)

Offline destroyedlolo

  • Jr. Member
  • **
  • Posts: 50
    • destroyedlolo's website
Bug in APP while removing an application
« on: February 03, 2023, 12:04:50 PM »
Hello,

I found a nasty bug in APP.
I installed dillo but I decided to remove it as it's too limited for my need.

I used APP, and mark Dillo for removal : unfortunately, it removed ALL the dependencies without checking if they are used elsewhere ... and among them, it was fltk-1.3.

Consequently, my desktop doesn't work anymore.

The solution was obvious, but it's very dangerous.

Bye

Laurent

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Bug in APP while removing an application
« Reply #1 on: February 03, 2023, 02:29:47 PM »
Hi destroyedlolo
Well, you did not state which version of TC and which architecture
you are running.

I tried this under TC13 x86:
Installed dillo onboot.
Marked dillo for removal.
    Apps listed it would remove:
                 ca-certificates, dejavu-fonts-ttf, dillo-beta, and wget
rebooted, desktop came up, fltk-1.3 was still present.

I could see this happening if all of the following were true:
  You are running Xvesa
  You are missing the  .dep  file for your window manager
  And fltk-1.3.tcz was included onboot

Offline destroyedlolo

  • Jr. Member
  • **
  • Posts: 50
    • destroyedlolo's website
Re: Bug in APP while removing an application
« Reply #2 on: February 04, 2023, 07:35:03 AM »
Oups, yes, sorry : it's TC 13.1, x86 version (32bits).

It's a stock install, I didn't modify anything so the environment is unchanged in term of GUI.

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 109
Re: Bug in APP while removing an application
« Reply #3 on: February 23, 2023, 03:12:35 PM »
I'm getting an MD5 mismatch error for fltk-1.3.tcz.

I assume this thread is the reason fltk was updated...

Code: [Select]
$ tce-load -wi fltk-1.3.tcz
Downloading: fltk-1.3.tcz
Connecting to repo.tinycorelinux.net (128.127.66.77:80)
wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable
fltk-1.3.tcz: FAILED
md5sum: WARNING: 1 of 1 computed checksums did NOT match
Error on fltk-1.3.tcz

$ cd /mnt/vda1/tce/optional/
$ ls -la flt*
-rw-rw-r--    1 tc       staff       466944 Feb 23 19:12 fltk-1.3.tcz
-rw-rw-r--    1 tc       staff           56 Feb 23 19:11 fltk-1.3.tcz.dep
-rw-rw-r--    1 tc       staff           47 Feb 23 19:12 fltk-1.3.tcz.md5.txt

$ md5sum -c fltk-1.3.tcz.md5.txt
fltk-1.3.tcz: FAILED
md5sum: WARNING: 1 of 1 computed checksums did NOT match


Based on a successful unsquash I get that the extension itself is ok.

Code: [Select]
$ tce-load -wi squashfs-tools.tcz
$ sudo unsquashfs fltk-1.3.tcz
$ sudo unsquashfs fltk-1.3.tcz
Parallel unsquashfs: Using 1 processor
6 inodes (207 blocks) to write
[================================================================================================|] 207/207 100%
created 3 files
created 4 directories
created 3 symlinks
created 0 devices
created 0 fifos

$ md5sum fltk-1.3.tcz
973f5025dae57ed7d201d91d44545833  fltk-1.3.tcz

$ cat fltk-1.3.tcz.md5.txt
ac00b0c19605f03990ac121584e7ea8e  fltk-1.3.tcz

As a workaround I created a new md5 hash.
Code: [Select]
$ md5sum fltk-1.3.tcz > fltk-1.3.tcz.md5.txt

$ tce-load -i fltk-1.3.tcz
fltk-1.3.tcz: OK

With this the desktop works again.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Bug in APP while removing an application
« Reply #4 on: February 23, 2023, 08:13:52 PM »
Hi rhermsen
MD5 files corrected. Thank you for reporting this.