The error appears when doing:
import apt_pkg, apt apt_pkg.init_config() apt_pkg.init_system()
cache = apt_pkg.Cache(apt.progress.base.OpProgress()) srcpkgrecords=apt_pkg.GetPkgSrcRecords()
SystemError: E:You must put some 'source' URIs in your sources.list
The error appears when doing:
import apt_pkg, apt init_config( ) init_system( )
apt_pkg.
apt_pkg.
cache = apt_pkg. Cache(apt. progress. base.OpProgress ()) apt_pkg. GetPkgSrcRecord s()
srcpkgrecords=
SystemError: E:You must put some 'source' URIs in your sources.list