Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: Kubuntu dev request: integrate QApt index with apt-get

  1. Back To Top    #1
    Pan-Galactic Quordlepleen SteveRiley's Avatar
    Join Date
    Jul 2011
    Location
    Seattle, WA, USA
    Posts
    9,636
    Threads
    350
    Local Date
    Jun 6th 2020
    Local Time
    01:05 AM

    Kubuntu dev request: integrate QApt index with apt-get

    In our little corner of the Linux desktop world, we have two package management indexes. One is maintained by Apt (apt-get, apt-cache, dpkg, and related). The other is mainted by QApt, an abstraction layer for Apt that's integrated with Qt and KDE applications -- Muon being the prime example.

    In a recent email to the kubuntu-devel list, Harald has asked for some help with a small but important test: invoking the QApt indexer, called Xapian, whenever apt-get update successfully runs. It's easy to do:

    1. Run your favorite text editor as root and create the file /etc/apt/apt.conf.d/90xapian

    2. Paste the following line into the file:
    Code:
    APT::Update::Post-Invoke-Success { "if [ -x /usr/sbin/update-apt-xapian-index ]; then update-apt-xapian-index -u; fi" }
    3. Save the file and exit the editor

    When you run apt-get update, you'll see something like:
    Code:
    ...
    Fetched 85.7 kB in 20s (4,196 B/s)
    Reading .desktop files from /usr/share/app-install/desktop/: done.  
    ... }
    ... } several lines of reading translation files
    ... }
    Reading Xapian index: done.  
    Updating Xapian index: done.  
    Reading package lists... Done
    It will likely increase the run time of apt-get update by only a few seconds.

    The test is to help gather information for determining whether to make this a Ubuntu-wide change for 15.04. It's an easy thing to do, won't harm your system, and helps improve package management and stability.

    If you encounter issues, report back here or (better) subscribe to kubuntu-devel and reply to Harald's message.
    Last edited by SteveRiley; Jul 25th 2014 at 06:05 AM.

  2. Back To Top    #2
    Ascendant GreyGeek's Avatar
    Join Date
    Feb 2009
    Posts
    16,483
    Threads
    1169
    Local Date
    Jun 6th 2020
    Local Time
    04:05 AM
    Done.

    EDIT: Output results:
    Code:
    Fetched 1,721 kB in 12s (135 kB/s)                                             
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_restricted_i18n_Translation-en: done.  
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-updates_restricted_i18n_Translation-en: done.  
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-backports_restricted_i18n_Translation-en: done.  
    Reading en translations from /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_restricted_i18n_Translation-en: done.  
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en: done.  
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_multiverse_i18n_Translation-en: done.  
    Reading en translations from /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_multiverse_i18n_Translation-en: done.  
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_universe_i18n_Translation-en: done.  
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-backports_multiverse_i18n_Translation-en: done.  
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-updates_multiverse_i18n_Translation-en: done.  
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-backports_main_i18n_Translation-en: done.  
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-updates_main_i18n_Translation-en: done.  
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-backports_universe_i18n_Translation-en: done.  
    Reading en translations from /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_main_i18n_Translation-en: done.  
    Reading en translations from /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_universe_i18n_Translation-en: done.  
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-updates_universe_i18n_Translation-en: done.  
    Reading Xapian index: done.  
    Updating Xapian index: done.  
    Reading package lists... Done
    Last edited by GreyGeek; Jul 23rd 2014 at 09:03 PM.

  3. Back To Top    #3
    Ancient vinnywright's Avatar
    Join Date
    Apr 2009
    Posts
    8,006
    Threads
    178
    Local Date
    Jun 6th 2020
    Local Time
    09:05 AM
    done and apparently no problems so far ,,,,,
    Code:
    The index /var/lib/apt-xapian-index is up to date
    Reading package lists... Done
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Calculating upgrade... Done
    VINNY

    PS my output looks diferent than yours SR ,,,will reboot and test one more time and look for a change.
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

  4. Back To Top    #4
    Ancient vinnywright's Avatar
    Join Date
    Apr 2009
    Posts
    8,006
    Threads
    178
    Local Date
    Jun 6th 2020
    Local Time
    09:05 AM
    nope no change ,,,same output

    VINNY
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

  5. Back To Top    #5
    Senior Member notabug's Avatar
    Join Date
    Oct 2009
    Posts
    201
    Threads
    3
    Local Date
    Jun 6th 2020
    Local Time
    05:05 AM
    I don't know the meaning of this
    Code:
    Fetched 1,979 kB in 22s (87.5 kB/s)                                             
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_multiverse_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_restricted_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_universe_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-updates_multiverse_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-updates_restricted_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-backports_main_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-backports_multiverse_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-backports_restricted_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_multiverse_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_restricted_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-proposed_multiverse_i18n_Translation-en: done.  
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-proposed_restricted_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-updates_main_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_main_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-updates_universe_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_universe_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-backports_universe_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-proposed_main_i18n_Translation-en: done.   
    Reading en translations from /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty-proposed_universe_i18n_Translation-en: done.   
    Reading Xapian index: done.   
    Updating Xapian index: done.   
    Reading package lists... Done
    Linux User #454271

  6. Back To Top    #6
    Ascendant GreyGeek's Avatar
    Join Date
    Feb 2009
    Posts
    16,483
    Threads
    1169
    Local Date
    Jun 6th 2020
    Local Time
    04:05 AM
    Quote Originally Posted by notabug View Post
    I don't know the meaning of this ...
    Neither do I, but the developers do, and that is why we who volunteered added that script.

  7. Back To Top    #7
    NickStone
    I can't create the file.
    Attached Thumbnails Attached Thumbnails Screenshot - 240714 - 17:30:06.png  

  8. Back To Top    #8
    Pan-Galactic Quordlepleen SteveRiley's Avatar
    Join Date
    Jul 2011
    Location
    Seattle, WA, USA
    Posts
    9,636
    Threads
    350
    Local Date
    Jun 6th 2020
    Local Time
    01:05 AM
    Quote Originally Posted by vinnywright View Post
    PS my output looks diferent than yours SR ,,,will reboot and test one more time and look for a change.
    Vinny, it appears that you ran apt-get upgrade rather than apt-get update.

  9. Back To Top    #9
    Pan-Galactic Quordlepleen SteveRiley's Avatar
    Join Date
    Jul 2011
    Location
    Seattle, WA, USA
    Posts
    9,636
    Threads
    350
    Local Date
    Jun 6th 2020
    Local Time
    01:05 AM
    Quote Originally Posted by notabug View Post
    I don't know the meaning of this
    The repositorites contain translation files. Both Apt and QApt need these. Those extra lines are the output of the Xapian indexer reading the translation files for QApt.

  10. Back To Top    #10
    Pan-Galactic Quordlepleen SteveRiley's Avatar
    Join Date
    Jul 2011
    Location
    Seattle, WA, USA
    Posts
    9,636
    Threads
    350
    Local Date
    Jun 6th 2020
    Local Time
    01:05 AM
    Quote Originally Posted by NickStone View Post
    I can't create the file.
    Hmm.... the directory /etc/apt/apt.conf.d/ should exist on your system. Can you verify?

Page 1 of 3 123 LastLast

Similar Threads

  1. [SOLVED] QApt worker.
    By leadwt in forum Kubuntu Catchall
    Replies: 10
    Last Post: Nov 27th 2014, 10:15 AM
  2. Kubuntu: My request.
    By nemrod in forum Pre-Installation
    Replies: 3
    Last Post: Aug 16th 2014, 12:35 AM
  3. Qapt and gksudo does not work
    By nabalzs in forum Software Support
    Replies: 4
    Last Post: Jul 8th 2013, 03:54 PM
  4. Re-integrate Kfind with Dolphin in Kubuntu 11.10?
    By bartman2589 in forum Software Support
    Replies: 6
    Last Post: Oct 28th 2011, 01:23 AM
  5. How to integrate BasKEt into Kontact?
    By homoludens in forum KDE Support
    Replies: 5
    Last Post: Jan 26th 2008, 11:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •