[PC-BSD Testing] AppCafe/pbi_deleterepo

Tigersharke . tigersharke at gmail.com
Wed Dec 21 15:23:55 PST 2011


On Wed, Dec 21, 2011 at 8:31 AM, Kris Moore <kris at pcbsd.org> wrote:

>  On 12/21/2011 04:19, Tigersharke . wrote:
>
> Hello..
>
> In my attempts to configure a local PBI repository, I have discovered a
> rather unfriendly bug. I stumbled through the repo creation process, then
> decided to remove *my* repo, intending to do no other damage.
>
>    - Upon removing id 002 (my repo) with pbi_deleterepo, AppCafe would no
>    longer start from the system tray.
>    - Re-adding my repo with pbi_addrepo, allowed AppCafe to start once
>    more, but the default PC-BSD repo remained inaccessible.
>    - Lacking a properly defined repository prevents installed PBI files
>    from being displayed in AppCafe, but pbi_info does list them.
>
>
>
> Please send the output of these commands:
>
> # pbi_listrepo
> # ls /var/db/pbi/index
>
>
>
> It may not have been the most brilliant idea to remove all repos but since
> it seemed that I had no access anyway, I didn't feel that I lost anything
> more.
>
> Without a repo defined, AppCafe will not load from the system tray, and
> attempts from commandline result in the following:
>
> [tigersharke at Mutant] > appcafe
> Locale: "en"
> Application starting...
> Populating list...
> Reading PBI List
> RealUser: "tigersharke"
> Adding Repos...
> Segmentation fault
>
> Perhaps it would be wise, in such a situation, for there to be an option
> to obtain the pbi repo information/file for the default repository, or
> automatically, or maybe even as a function of the update manager should the
> default repo data become lost.  Even without those possible mechanisms
> added, the default appcafe repo file ought to exist somewhere on the system
> as a precaution.
>
> Thanks for your efforts!
>
>
> PS. How can I recover AppCafe functionality?  How can I define the
> Official PBI Repository?
>
>
> Download this file:
>
>
> http://trac.pcbsd.org/export/14391/pcbsd/current/src-sh/pbi-manager/repo/pcbsd.rpo
>
> Then do a pbi_addrepo to re-init it.
>
>
>
>
Hello!

*Here* is the requested output, and a little more:

[tigersharke at Mutant] /usr/ports/sysutils/easypbi# pbi_listrepo
[ID]    [Description]
-----------------------------------------------------
001    Official
[tigersharke at Mutant] # ls /var/db/pbi/index
dd3920955c2fcf9bcc66b20dc0d89354-meta
[tigersharke at Mutant] # pbi_deleterepo 001
Deleted Repository 001.
[tigersharke at Mutant] # ls /var/db/pbi/index
dd3920955c2fcf9bcc66b20dc0d89354-meta
[tigersharke at Mutant] # cd
[tigersharke at Mutant] ~# wget
http://trac.pcbsd.org/export/14391/pcbsd/current/src-sh/pbi-manager/repo/pcbsd.rpo
--2011-12-21 16:47:47--
http://trac.pcbsd.org/export/14391/pcbsd/current/src-sh/pbi-manager/repo/pcbsd.rpo
Resolving trac.pcbsd.org (trac.pcbsd.org)... 149.20.54.149,
2001:4f8:3:36:230:48ff:fed3:712c
Connecting to trac.pcbsd.org (trac.pcbsd.org)|149.20.54.149|:80...
connected.
HTTP request sent, awaiting response... 200 Ok
Length: 955 [application/octet-stream]
Saving to: `pcbsd.rpo'

100%[=====================================================================================================================================>]
955         --.-K/s   in 0s

2011-12-21 16:47:49 (81.0 MB/s) - `pcbsd.rpo' saved [955/955]

[tigersharke at Mutant] ~# pbi_addrepo pcbsd.rpo
Added new repo: "Official PC-BSD Repository" to the database.
[tigersharke at Mutant] ~# ls /var/db/pbi/index
dd3920955c2fcf9bcc66b20dc0d89354-meta
[tigersharke at Mutant] ~# pbi_listrepo
[ID]    [Description]
-----------------------------------------------------
001    Official PC-BSD Repository

*Just* so you're aware, the repo 'Official' was there as my attempt to
restore something from nothing and then revise the mirror via AppCafe.

*The* AppCafe now has both the application categories shown and installed
tab populated, but 'Latest releases' is empty, and no PBIs are listed
within any category. The following is results on commandline:

[tigersharke at Mutant] ~# pbi_info -i
ls: /var/db/pbi/index/*index*: No such file or directory
[tigersharke at Mutant] ~# pbi_browser
Using RepoID: 001
Available Categories:
------------------------------------
Category: Archivers
Icon: /var/db/pbi/repo-icons/dd3920955c2fcf9bcc66b20dc0d89354-Archivers.png
Description: Programs for packing/unpacking data archives

------------------------------------

<Snip - intervening Category output - snip>

------------------------------------
Category: X11
Icon: /var/db/pbi/repo-icons/dd3920955c2fcf9bcc66b20dc0d89354-X11.png
Description: Alternate desktop environments or utilities

To view available PBIs for a particular category:
 % pbi_browser -c <category> <repoid>
[tigersharke at Mutant] ~# appcafe
Qt: Session management error: Authentication Rejected, reason : None of the
authentication protocols specified are supported and host-based
authentication failed
Locale: "en"
Application starting...
Populating list...
Reading PBI List
Found PBI: "brainparty" "0.5_2" "001"
"/var/db/pbi/installed/brainparty-0.5_2-amd64/pbi_icon.png"
Found PBI: "Clementine" "0.7.1" "001"
"/var/db/pbi/installed/clementine-0.7.1-amd64/pbi_icon.png"
Found PBI: "Conky" "1.8.1_4" "001"
"/var/db/pbi/installed/conky-1.8.1_4-amd64/pbi_icon.png"
Found PBI: "easypbi" "0.3" "-1"
"/var/db/pbi/installed/easypbi-0.3-amd64/pbi_icon.png"
Found PBI: "firefox" "8.0" "-1"
"/var/db/pbi/installed/firefox-8.0-amd64/pbi_icon.png"
Found PBI: "gbrainy" "2.03" "001"
"/var/db/pbi/installed/gbrainy-2.03-amd64/pbi_icon.png"
Found PBI: "KVIrc" "4.0.4_1" "001"
"/var/db/pbi/installed/kvirc-4.0.4_1-amd64/pbi_icon.png"
Found PBI: "LibreOffice" "3.4.3_1" "001"
"/var/db/pbi/installed/libreoffice-3.4.3_1-amd64/pbi_icon.svg"
Found PBI: "pipewalker" "0.8.3" "001"
"/var/db/pbi/installed/pipewalker-0.8.3-amd64/pbi_icon.png"
Found PBI: "qBittorrent" "2.8.5" "001"
"/var/db/pbi/installed/qbittorrent-2.8.5-amd64/pbi_icon.png"
Found PBI: "recordMyDesktop" "0.3.8.1_2" "001"
"/var/db/pbi/installed/recordmydesktop-0.3.8.1_2-amd64/pbi_icon.png"
Found PBI: "vlc" "1.1.11_1" "001"
"/var/db/pbi/installed/vlc-1.1.11_1-amd64/pbi_icon.png"
Found PBI: "Warden" "1.1.2" "001"
"/var/db/pbi/installed/warden-1.1.2-amd64/pbi_icon.png"
Found PBI: "Warzone2100" "2.3.9" "001"
"/var/db/pbi/installed/warzone2100-2.3.9-amd64/pbi_icon.png"
Found PBI: "wine64" "1.3.31" "001"
"/var/db/pbi/installed/wine64-1.3.31-i386/pbi_icon.png"
Found PBI: "znotes" "0.4.5" "-1" ""
RealUser: "tigersharke"
Adding Repos...
Starting update check for: "clementine-0.7.1-amd64"
Getting details for repoID:  "001"
Loading translations for repoid: "001"
Adding Categories for repoID: "001"
Getting PBIs for repo: "001"
Update Return: ""
Starting update check for: "conky-1.8.1_4-amd64"
Update Return: ""
Starting update check for: "kvirc-4.0.4_1-amd64"
Update Return: ""
Starting update check for: "libreoffice-3.4.3_1-amd64"
Update Return: ""
Starting update check for: "warden-1.1.2-amd64"
Update Return: ""
Starting update check for: "warzone2100-2.3.9-amd64"
Update Return: ""
Starting update check for: "brainparty-0.5_2-amd64"
Update Return: ""
Starting update check for: "easypbi-0.3-amd64"
Update Return: ""
Starting update check for: "firefox-8.0-amd64"
Update Return: ""
Starting update check for: "gbrainy-2.03-amd64"
Update Return: ""
Starting update check for: "pipewalker-0.8.3-amd64"
Update Return: ""
Starting update check for: "qbittorrent-2.8.5-amd64"
Update Return: ""
Starting update check for: "recordmydesktop-0.3.8.1_2-amd64"
Update Return: ""
Starting update check for: "vlc-1.1.11_1-amd64"
Update Return: ""
Starting update check for: "wine64-1.3.31-i386"
Update Return: ""
Starting update check for: "znotes-0.4.5-amd64"
Update Return: ""
[tigersharke at Mutant] ~#


*So* there seems to be metadata still missing, which remains a popup
warning at the start of AppCafe.

Thanks for your effort!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pcbsd.org/pipermail/testing/attachments/20111221/36125a20/attachment.html>


More information about the Testing mailing list