Opened 11 years ago

Closed 11 years ago

Last modified 11 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:
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 by diver, 11 years ago

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

comment:2 by bonefish, 11 years ago

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

comment:3 by bonefish, 11 years ago

Resolution: fixed
Status: in-progressclosed

Fixed in 998ef890654e102c89634fbc9e40eb605878542f.

comment:4 by diver, 11 years ago

BTW, the first problem is still valid.

in reply to:  4 comment:5 by bonefish, 11 years ago

Replying to diver:

BTW, the first problem is still valid.

Addressed that in 8f9efca.

comment:6 by diver, 11 years ago

Unfortunately, it still doesn't work in c4ce29a.

comment:7 by diver, 11 years ago

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

in reply to:  7 comment:8 by bonefish, 11 years ago

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 by bonefish, 11 years ago

Done in ce4f367.

Note: See TracTickets for help on using tickets.