Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#9921 closed bug (fixed)

[pkgman] uninstall issues

Reported by: diver Owned by: bonefish
Priority: normal Milestone: R1
Component: Applications/Command Line Tools Version: R1/Package Management
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

This is 4c6b3ef Haiku.PM.

  • Uninstalling a package downloads repository checksum each time. So without Internet connection it is not possible to do it.
  • it looks like the package_daemon is not notified about package removal since it's not possible to reinstall it again. hey package_daemon quit; /system/servers/package_daemon fixes it though.
~> pkgman uninstall bepdf
Error: Failed to open repository file "/boot/common/cache/package-repositories/HaikuPorts": No such file or directory
Fetching repository checksum from http://haiku-files.org/files/repo/65080b47bb763c64538050918c09276dfa22dba9e4ed3710ede7865039e562c9 ...
######################################################################## 100.0%
Validating checksum for HaikuPorts ...
Fetching repository-cache from http://haiku-files.org/files/repo/65080b47bb763c64538050918c09276dfa22dba9e4ed3710ede7865039e562c9 ...
######################################################################## 100.0%
Validating checksum for HaikuPorts ...
Activating repository cache for HaikuPorts ...
The following changes will be made:
  uninstall package bepdf-1.1.1~beta5_2013_04_28-1
Continue? [y/n] (y) : y
Installation done. Old activation state backed up in "state_2013-08-13_06:53:14"
Cleaning up ...
~> pkgman uninstall bepdf
Fetching repository checksum from http://haiku-files.org/files/repo/65080b47bb763c64538050918c09276dfa22dba9e4ed3710ede7865039e562c9 ...
######################################################################## 100.0%
Validating checksum for HaikuPorts ...
The following changes will be made:
  uninstall package bepdf-1.1.1~beta5_2013_04_28-1
Continue? [y/n] (y) : y
*** failed to commit transaction: failed to move old package from packages directory: No such file or directory, package: "bepdf-1.1.1~beta5_2013_04_28-1-x86_gcc2.hpkg"
~> pkgman install  bepdf
Fetching repository checksum from http://haiku-files.org/files/repo/65080b47bb763c64538050918c09276dfa22dba9e4ed3710ede7865039e562c9 ...
######################################################################## 100.0%
Validating checksum for HaikuPorts ...
Nothing to do.
~> 

Change History (9)

comment:1 Changed 6 years ago by diver

Summary: [package] uninstall issues[pkgman] uninstall issues

comment:2 Changed 6 years ago by bonefish

Owner: changed from nobody to bonefish
Status: newin-progress

comment:3 Changed 6 years ago by bonefish

Resolution: fixed
Status: in-progressclosed

Fixed in 998ef890654e102c89634fbc9e40eb605878542f.

comment:4 Changed 6 years ago by diver

BTW, the first problem is still valid.

comment:5 in reply to:  4 Changed 6 years ago by bonefish

Replying to diver:

BTW, the first problem is still valid.

Addressed that in 8f9efca.

comment:6 Changed 6 years ago by diver

Unfortunately, it still doesn't work in c4ce29a.

comment:7 Changed 6 years ago by diver

Actually, after about 10 seconds pkgman let me do it. Is there a reason for fetching repository checksum on uninstall?

comment:8 in reply to:  7 Changed 6 years ago by bonefish

Replying to diver:

Actually, after about 10 seconds pkgman let me do it. Is there a reason for fetching repository checksum on uninstall?

Only a hypothetical one, since I don't think we have such a case in our repository yet. When uninstalling a package that is actually needed, the dependency solver may suggest to install an alternative package providing the requirement. At this point it would be relevant to work with current repository data. It isn't critical, though. Not even in the regular install case, as long as the packages are still available on the server.

I tested with qemu with the network interface disabled, and there was no delay, but I guess in other scenarios of not having internet access the checksum file download will hang until timing out. So disabling the auto-refresh for the "uninstall" operation would probably be a good idea. Maybe also for "search". We do have an explicit "refresh" anyway.

comment:9 Changed 6 years ago by bonefish

Done in ce4f367.

Note: See TracTickets for help on using tickets.