/usr/share/oneconf/oneconf-query:SystemError:/usr/bin/oneconf-query@245:async_update:update:update:compute_local_packagelist:__init__:open
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | oneconf (Ubuntu) |
High
|
Unassigned | ||
Bug Description
The Ubuntu Error Tracker has been receiving reports about a problem regarding oneconf. This problem was most recently seen with version 0.3.7, the problem page at https:/
| Brian Murray (brian-murray) wrote : | #1 |
| Launchpad Janitor (janitor) wrote : | #2 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in oneconf (Ubuntu): | |
| status: | New → Confirmed |
| Bruno Nova (brunonova) wrote : | #3 |
I received a similar error a few days ago.
It's a very strange error, because the file that was mentioned actually exists in my computer.
Unless that file was momentarily missing due to a repository update, and exactly when oneconf decided to sync. If that's how this works, of course.
The best and easiest way to fix this bug would probably be to just add a try...except block around one of the lines in the traceback.
| Changed in oneconf (Ubuntu): | |
| importance: | Undecided → Medium |
| Sebastien Bacher (seb128) wrote : | #4 |
That seems a frequent e.u.c issue, I reported it to Debian python-apt on https:/
"You're probably opened the cache without holding a lock, and an update ran in parallel. That's really the only possible explanation I could think of."
| Changed in oneconf (Ubuntu): | |
| importance: | Medium → High |


Here's the Traceback:
Traceback (most recent call last): oneconf- query", line 245, in <module> async_update( ) python3/ dist-packages/ oneconf/ directconnect. py", line 80, in async_update python3/ dist-packages/ oneconf/ directconnect. py", line 73, in update PackageSetHandl er().update( ) python3/ dist-packages/ oneconf/ packagesethandl er.py", line 63, in update compute_ local_packageli st() python3/ dist-packages/ oneconf/ distributor/ Ubuntu. py", line 42, in compute_ local_packageli st python3/ dist-packages/ apt/cache. py", line 107, in __init__ open(progress) python3/ dist-packages/ apt/cache. py", line 153, in open PackageRecords( self._cache) apt/lists/ ve.archive. ubuntu. com_ubuntu_ dists_trusty_ restricted_ i18n_Translatio n-es - open (2: No such file or directory)
File "/usr/bin/
oneconf.
File "/usr/lib/
self.update()
File "/usr/lib/
self.
File "/usr/lib/
newpkg_list = self.distro.
File "/usr/lib/
with apt.Cache() as apt_cache:
File "/usr/lib/
self.
File "/usr/lib/
self._records = apt_pkg.
SystemError: E:Could not open file /var/lib/
It seems like it could a bug in oneconf or python-apt.