#!/usr/bin/python3 # This script is licensed under GPL v3 or higher import apt_pkg import apt import sys import posixpath def main(): apt_pkg.init_config() apt_pkg.init_system() acquire = apt_pkg.Acquire() slist = apt_pkg.SourceList() # Read the list slist.read_main_list() # Add all indexes to the fetcher. slist.get_indexes(acquire, True) # Now print the URI of every item. for item in acquire.items: print(str(item)) if __name__ == '__main__': main()