apt-get update returns error
|
22nd Feb, 2015, 12:01 AM
Post: #1
|
|||
|
|||
apt-get update returns error
This error below started appearing when i run apt-get update on my xbian. I'm not really sure why and searching for the problem returned nothing useful. Can anybody point me to the right direction? Thank you.
I've pasted apt sources below. W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file) W: Failed to fetch mirror://apt.xbian.org/mirror.txt/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file) E: Some index files failed to download. They have been ignored, or old ones used instead. Terminal root@xbian /etc/apt # uname -a Linux xbian.private 3.17.7-ck2+ #3 PREEMPT Sat Jan 17 15:08:48 CET 2015 armv6l GNU/Linux root@xbian /etc/apt # cat /etc/xbian_version 20141231-2 root@xbian /etc/apt # cat sources.list deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi root@xbian /etc/apt # cat sources.list.d/xbian.list deb mirror://apt.xbian.org/mirror.txt stable main rpi-wheezy |
|||
22nd Feb, 2015, 01:05 AM
Post: #2
|
|||
|
|||
RE: apt-get update returns error
Have you tried upgrading via ssh xbian-config - especially 1) Upgrading the mirrors?
Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
22nd Feb, 2015, 05:20 AM
Post: #3
|
|||
|
|||
RE: apt-get update returns error
(22nd Feb, 2015 01:05 AM)IriDium Wrote: Have you tried upgrading via ssh xbian-config - especially 1) Upgrading the mirrors? I have, didn't help. I think that mirrors are OK but something is strange with architecture. Mine is trying to find i386 in Release file and when i check //mirrordirector.raspbian.org/raspbian/dists/wheezy/Release it has only armhf |
|||
22nd Feb, 2015, 05:41 AM
Post: #4
|
|||
|
|||
RE: apt-get update returns error
so what was you doing before this happened? your issue is very, very strange
~~~~>>>Please always follow rules and read before you post<<<~~~~ |
|||
22nd Feb, 2015, 08:50 AM
Post: #5
|
|||
|
|||
RE: apt-get update returns error
Maybe related to me having created an additional wheezy apt mirror for the amd64 architecture on the same box that hosts the xbian.dehakkelaar.nl mirror for xbian.
I symlinked some components from the xbian armhf apt mirror to the same mirror that holds the amd64 files (different root folder) so to create my own repo with only deb files that i need for private use. Maybe some components jumped via the symlinks to the wrong spot on my xbian mirror. Have removed the symlinks I created and in about 30 minutes from now, xbian.dehakkelaar.nl will get refreshed/resynced. Try again please after running 'sudo apt-get clean all'? There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
23rd Feb, 2015, 12:15 AM
Post: #6
|
|||
|
|||
RE: apt-get update returns error
Thanks for reply but it didn't help. :/
Could it be that i installed something with i386 architecture that has now dependency on those releases? |
|||
23rd Feb, 2015, 02:30 PM
Post: #7
|
|||
|
|||
RE: apt-get update returns error
My mirror now is as clean as can be.
Try play with: dpkg --print-architecture dpkg --print-foreign-architectures I believe with below one you can remove arch: dpkg --remove-architecture i386 Or add : dpkg --add-architecture armhf Need to do 'apt-get update' afterwards and maybe 'apt-get clean' first. There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
24th Feb, 2015, 10:36 PM
Post: #8
|
|||
|
|||
RE: apt-get update returns error
(23rd Feb, 2015 02:30 PM)deHakkelaar Wrote: I believe with below one you can remove arch:Tank you! This worked; removing i386 arch. I installed new updates and now i have this situation. Should i do dist-upgrade or just leave it as it is? Thank you again! Terminal root@xbian ~ # apt-get upgrade -V Reading package lists... Done Building dependency tree Reading state information... Done The following packages have been kept back: xbian-package-config-xbmc (1.2.0-1 => 20150220-1) xbian-package-xbmc-scripts (1.1.5 => 1.1.8) xbian-update (20141231-2 => 20150218-1) 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. root@xbian ~ # apt-get dist-upgrade -V Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be REMOVED: upstart (1.6.1-1) xbian-package-config-xbmc (20150220-1) xbian-package-lirc (1.5.1) xbian-package-xbmc (13.2-RLS-1419734381) xbian-update (20150218-1) The following NEW packages will be installed: iptables (1.4.14-3.1) libnfnetlink0 (1.0.0-1.1) sysvinit (2.88dsf-41+deb7u1) The following packages will be upgraded: xbian-package-xbmc-scripts (1.1.5 => 1.1.8) WARNING: The following essential packages will be removed. This should NOT be done unless you know exactly what you are doing! xbian-update xbian-package-lirc (due to xbian-update) upstart (due to xbian-update) xbian-package-xbmc (due to xbian-update) 1 upgraded, 3 newly installed, 5 to remove and 0 not upgraded. Need to get 516 kB of archives. After this operation, 85.2 MB disk space will be freed. You are about to do something potentially harmful. To continue type in the phrase 'Yes, do as I say!' |
|||
24th Feb, 2015, 11:32 PM
Post: #9
|
|||
|
|||
RE: apt-get update returns error
Never do dist-upgrade.
Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us. |
|||
25th Feb, 2015, 12:13 AM
Post: #10
|
|||
|
|||
RE: apt-get update returns error
After installing the latest xbian-update of today users will get this nice warning Lets hope it helps:
Terminal # apt-get dist-upgrade ----------- WARNING ----------- Running 'apt-get dist-upgrade' can break your system badly. Are you sure you want to take that risk? ----------- WARNING ----------- [y/n] pilight - modular domotica solution
|
|||
25th Feb, 2015, 01:21 AM
Post: #11
|
|||
|
|||
RE: apt-get update returns error
Hi Curly,
initialy i got a different warning: Terminal root@pi2dev ~ # apt-get upgrade The following packages will be upgraded: xbian-update Terminal root@pi2dev ~ # apt-get dist-upgrade You are about to do something potentially harmful. To continue type in the phrase 'Yes, do as I say!' Only after reboot I get your warning: Terminal root@pi2dev ~ # apt-get dist-upgrade ----------- WARNING ----------- Running 'apt-get dist-upgrade' can break your system badly. Are you sure you want to take that risk? ----------- WARNING ----------- [y/n] There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
25th Feb, 2015, 01:34 AM
Post: #12
|
|||
|
|||
RE: apt-get update returns error
After a reboot or after a re-login.
pilight - modular domotica solution
|
|||
25th Feb, 2015, 03:15 AM
Post: #13
|
|||
|
|||
RE: apt-get update returns error
I did not try to re-login again.
After 'reboot', the warning changed. There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
26th Feb, 2015, 08:46 PM
Post: #14
|
|||
|
|||
RE: apt-get update returns error | |||
27th Feb, 2015, 03:20 AM
Post: #15
|
|||
|
|||
RE: apt-get update returns error
I have this update error:
Code: apt-get update |
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
(Solved) - Update error after disabling CEC adapter | supernano | 8 | 19,897 |
18th May, 2020 09:28 PM Last Post: Antonio |
|
(Solved) GPG error while running apt-get update | Joecastra | 9 | 21,945 |
29th May, 2016 02:26 AM Last Post: Nachteule |
|
Gpg error when trying to update | onyx666 | 5 | 14,814 |
16th Sep, 2015 06:50 PM Last Post: Skywatch |