I had this error for 2 deb lines first was with the testing and the second with oracles repo.
So im not sure what all the files in here are for but this worked
PLEASE DO NOT do this until someone more knowledgeable chimes in and says it ok
first the update I found after doing the brute work
I did find in the apt-get man page this
All command-line options may be set using the configuration file, the descriptions indicate the configuration option to set. For boolean options you can override the config file by using something like -f-, --no-f, -f=no or several other variations.
This option defaults to on, use --no-list-cleanup to turn it off. When on, apt-get will automatically manage the contents of /var/lib/apt/lists to ensure that obsolete files are erased. The only reason to turn it off is if you frequently change your source list.
this is defined about the config file
Storage area for state information for each package resource specified in sources.list(5).
Configuration Item: Dir::State::Lists.
Storage area for state information in transit.
Configuration Item: Dir::State::Lists (implicit partial).
I don't know if this should be changed to turn the option on in the config file, however the config file that is referenced in the man page does not exist
/etc/apt/apt.conf <---- this is not present
APT configuration file.
Configuration Item: Dir::Etc::Main.
/etc/apt/apt.conf.d/ <---- this is but doesn't have the config options for list management
APT configuration file fragments.
Configuration Item: Dir::Etc::Parts.
--source man page--
I'm not sure if this is a bug or I am not understanding how to correctly manage the lists folder.
This is how I ultimately fixed it
I found this https://www.virtualbox.org/ticket/6908
and ended up changing it to
- Code: Select all
mv * old
this worked perfectly
so i went back and cleaned up
- Code: Select all
AGAIN this worked for me, there may be other consequences I don't know about