When I scan for updates manually in the GUI I get the following error message:
OSMC Update Error
Error installing:
Please report this on the OSMC forum.
Right after this attempt I typed the following in Putty:
sudo apt-get update
And receive the following message:
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (2: No such file or directory)
Then I typed the following in Putty:
sudo apt-get upgrade
And the following appears:
Reading package lists… Done
Building dependency tree… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Log: http://paste.osmc.io/sepeloxifa
What’s the contents of /etc/apt/sources.list ?
Anyone have any answers on this? I’m now experiencing the same issue. Logs here
Anyone?
Bueller?
My /etc/apt/sources.list has only 2 lines:
deb Index of /raspbian jessie main contrib non-free
deb http://apt.osmc.tv jessie main
The sources.list file will have different entries for Pi 1 and Pi 2.
Unless your problems are identical to those described in this thread I would suggest you start a new thread including debug logs.
Well, identical is not the word I’d use but it’s as close as any issue I’ve seen…
Running updates manually from the GUI on my RPi2 results in the same response as @kamphuijs and running
sudo apt-get update
Gives me
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (5: Input/output error)
followed by
sudo apt-get upgrade
resulting in
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… The following packages were automatically installed and are no longer required:
armv7-libafpclient-osmc rbp2-image-3.18.13-1-osmc rbp2-image-4.1.2-1-osmc
Use ‘apt-get autoremove’ to remove them.
Done
Contents of /etc/apt/sources.list is, again, the same as @kamphuijs above. Logs previously uploaded but am linking them again [here.][1]
Any help is greatly appreciated.
Duke
[1]: http://paste.osmc.io/gisaqipade
Try this before trying update then dist-upgrade again:
sudo apt-get clean
Basically the same result.
sudo apt-get clean
returns empty prompt
sudo apt-get update
returns
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (5: Input/output error)
and
sudo apt-get dist-upgrade
returns
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… The following packages were automatically installed and are no longer required:
armv7-libafpclient-osmc rbp2-image-3.18.13-1-osmc rbp2-image-4.1.2-1-osmc
Use ‘apt-get autoremove’ to remove them.
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[Edit] I suppose, at this point, I could just do a fresh install but I just did that recently and would still like to know the reason for this problem if it is possible?
Duke
This is quite possibly a disk error or you’ve run out of disk space. Can you provide the output of these two commands ?
df -h | paste-log
sudo journalctl | paste-log
df -h | paste-log
http://paste.osmc.io/iyorabaqem
sudo journlctl | paste-log
http://paste.osmc.io/gazahigume
Thanks for looking into this.
Duke
Liking the 16TB of NAS storage there. RAID6 4TB?
Insert the SD card in to your PC and look for a file called cmdline.txt.
Add the following to the end of the line add this:
init="/sbin/fsck.ext4 /dev/mmcblk0p2"
If you have a keyboard, then do init=/bin/bash and run that command.
Then power off, remove the change and try and boot
Sam
Heh, thanks @sam_nazarko . It’s Drobo’s proprietary RAID but currently set for single disk redundancy so
i guess that would put it closer to RAID 5 (currently with 5x3TB drives). Drobo just reports the total potential capacity of the array (currently only compatible with 4TB drives max disk size) so that explains the discrepancy.
But enough about that.
Just to be clear on your directions… I should edit the cmdline.txt with the indicated line and then also run the second command from the console on first boot if I have a keyboard attached, yes? Will a wireless keyboard suffice?
Thanks again for your help, Sam.
Duke
Wireless keyboard will work, so use the init=/bin/bash line and add it to cmdline.txt. Then run fsck.ext4 /dev/mmcblk0p2 via the console. After that, power down, remove the line and try and boot again.
Sam
Hmm… well I’m clearly doing something wrong as both methods resulted in kernel panicks.
Duke
Here is another method you can try. Change cmdline.txt back to what it was, and at the end of the line add:
fsck.repair=yes
Then boot up and edit your /etc/fstab file, on the following line change the last 0 to a 1:
/dev/mmcblk0p2 / ext4 defaults,noatime 0 0
Then to force a full file system check on next boot then do:
sudo -s
touch /forcefsck
reboot
Sorry, but I should make sure I’m not screwing it up entirely (AGAIN, as always).
The change should be at the end of the current cmdline.txt line as in:
root=/dev/mmcblk0p2 rootfstype=ext4 rootwait quiet osmcdev=rbp2 fsck.repair=yes
or should it be on the next line as in:
root=/dev/mmcblk0p2 rootfstype=ext4 rootwait quiet osmcdev=rbp2
fsck.repair=yes
Apologies for needing the training wheels.
Duke
Ok, so I seem to have managed without a kernel panick so… YAY!
Ran the file system check and it all went by rather quickly. On the off chance things were now resolved, I went to the GUI updater and things seem to be running normally again so that seems to have done the trick. Are there any logs for the file system check I can look at to see what exactly was resolved?
Thanks again to all for helping to get this sorted.
Duke
Run these commands via SSH to make sure everything is good:
sudo apt-get -f install
sudo apt-get update
sudo apt-get -y dist-upgrade
You can edit cmdline.txt to what it was before
Sam
That all seems to have gone as normal. The cmdline.txt and fstab files are back to pre-edited versions.
Thanks again for everything.
Duke