Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

apt-get update returns error
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
apt-get update returns error
22nd Feb, 2015, 12:01 AM
Post: #1
feign Offline
Registered
Posts: 6
Joined: Feb 2015
Reputation: 0
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
Find all posts by this user
Quote this message in a reply
22nd Feb, 2015, 01:05 AM
Post: #2
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
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.
Find all posts by this user
Quote this message in a reply
22nd Feb, 2015, 05:20 AM
Post: #3
feign Offline
Registered
Posts: 6
Joined: Feb 2015
Reputation: 0
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
Find all posts by this user
Quote this message in a reply
22nd Feb, 2015, 05:41 AM
Post: #4
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: apt-get update returns error
so what was you doing before this happened? your issue is very, very strange Smile

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
22nd Feb, 2015, 08:50 AM
Post: #5
deHakkelaar Offline
Administrator
******
Posts: 360
Joined: Dec 2012
Reputation: 23
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
Find all posts by this user
Quote this message in a reply
23rd Feb, 2015, 12:15 AM
Post: #6
feign Offline
Registered
Posts: 6
Joined: Feb 2015
Reputation: 0
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?
Find all posts by this user
Quote this message in a reply
23rd Feb, 2015, 02:30 PM
Post: #7
deHakkelaar Offline
Administrator
******
Posts: 360
Joined: Dec 2012
Reputation: 23
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
Find all posts by this user
Quote this message in a reply
24th Feb, 2015, 10:36 PM
Post: #8
feign Offline
Registered
Posts: 6
Joined: Feb 2015
Reputation: 0
RE: apt-get update returns error
(23rd Feb, 2015 02:30 PM)deHakkelaar Wrote:  I believe with below one you can remove arch:
dpkg --remove-architecture i386
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!'
Find all posts by this user
Quote this message in a reply
24th Feb, 2015, 11:32 PM
Post: #9
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
25th Feb, 2015, 12:13 AM
Post: #10
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: apt-get update returns error
After installing the latest xbian-update of today users will get this nice warning Smile 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
Visit this user's website Find all posts by this user
Quote this message in a reply
25th Feb, 2015, 01:21 AM
Post: #11
deHakkelaar Offline
Administrator
******
Posts: 360
Joined: Dec 2012
Reputation: 23
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
Find all posts by this user
Quote this message in a reply
25th Feb, 2015, 01:34 AM
Post: #12
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: apt-get update returns error
After a reboot or after a re-login.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
25th Feb, 2015, 03:15 AM
Post: #13
deHakkelaar Offline
Administrator
******
Posts: 360
Joined: Dec 2012
Reputation: 23
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
Find all posts by this user
Quote this message in a reply
26th Feb, 2015, 08:46 PM
Post: #14
feign Offline
Registered
Posts: 6
Joined: Feb 2015
Reputation: 0
RE: apt-get update returns error
(24th Feb, 2015 11:32 PM)f1vefour Wrote:  Never do dist-upgrade.

Roger that. Smile
But my OCD part refuses to look at those kept back updates.
Find all posts by this user
Quote this message in a reply
27th Feb, 2015, 03:20 AM
Post: #15
picard12 Offline
Registered
Posts: 8
Joined: Mar 2013
Reputation: 0
RE: apt-get update returns error
I have this update error:

Code:
apt-get update
Err http://apt.xbian.org stable Release.gpg
  Something wicked happened resolving 'apt.xbian.org:http' (-5 - No address associated with hostname)
Ign http://apt.xbian.org stable Release      
Err http://mirrordirector.raspbian.org wheezy Release.gpg
  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)
Ign http://apt.xbian.org stable/main armhf Packages/DiffIndex
Ign http://mirrordirector.raspbian.org wheezy Release
Ign http://mirrordirector.raspbian.org wheezy/main armhf Packages/DiffIndex
Ign http://mirrordirector.raspbian.org wheezy/contrib armhf Packages/DiffIndex
Ign http://mirrordirector.raspbian.org wheezy/non-free armhf Packages/DiffIndex
Ign http://mirrordirector.raspbian.org wheezy/rpi armhf Packages/DiffIndex  
Err http://apt.xbian.org stable/main Translation-en_US                      
  Something wicked happened resolving 'apt.xbian.org:http' (-5 - No address associated with hostname)
Err http://apt.xbian.org stable/main Translation-en                          
  Something wicked happened resolving 'apt.xbian.org:http' (-5 - No address associated with hostname)
Err http://apt.xbian.org stable/main armhf Packages                          
  Something wicked happened resolving 'apt.xbian.org:http' (-5 - No address associated with hostname)
Ign mirror://apt.xbian.org stable Release.gpg                                
Ign mirror://apt.xbian.org stable Release      
Ign mirror://apt.xbian.org stable/main armhf Packages/DiffIndex
Ign mirror://apt.xbian.org stable/rpi-wheezy armhf Packages/DiffIndex
Ign mirror://apt.xbian.org stable/main Translation-en_US
Ign mirror://apt.xbian.org stable/main Translation-en
Ign mirror://apt.xbian.org stable/rpi-wheezy Translation-en_US
Ign mirror://apt.xbian.org stable/rpi-wheezy Translation-en
Err mirror://apt.xbian.org stable/main armhf Packages
  No mirror file '/var/lib/apt/mirrors/apt.xbian.org_mirror.txt' found  [Mirror: ]
Err mirror://apt.xbian.org stable/rpi-wheezy armhf Packages
  No mirror file '/var/lib/apt/mirrors/apt.xbian.org_mirror.txt' found  [Mirror: ]
Err http://mirrordirector.raspbian.org wheezy/contrib Translation-en_US
  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)
Err http://mirrordirector.raspbian.org wheezy/contrib Translation-en
  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)
Err http://mirrordirector.raspbian.org wheezy/main Translation-en_US
  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)
Err http://mirrordirector.raspbian.org wheezy/main Translation-en
  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)
Err http://mirrordirector.raspbian.org wheezy/non-free Translation-en_US
  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)
Err http://mirrordirector.raspbian.org wheezy/non-free Translation-en
  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)
Err http://mirrordirector.raspbian.org wheezy/rpi Translation-en_US
  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)
Err http://mirrordirector.raspbian.org wheezy/rpi Translation-en
  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)
Err http://mirrordirector.raspbian.org wheezy/main armhf Packages
  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)
Err http://mirrordirector.raspbian.org wheezy/contrib armhf Packages
  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)
Err http://mirrordirector.raspbian.org wheezy/non-free armhf Packages
  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)
Err http://mirrordirector.raspbian.org wheezy/rpi armhf Packages
  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)
W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/Release.gpg  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://apt.xbian.org/dists/stable/Release.gpg  Something wicked happened resolving 'apt.xbian.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://apt.xbian.org/dists/stable/main/i18n/Translation-en_US  Something wicked happened resolving 'apt.xbian.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://apt.xbian.org/dists/stable/main/i18n/Translation-en  Something wicked happened resolving 'apt.xbian.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://apt.xbian.org/dists/stable/main/binary-armhf/Packages  Something wicked happened resolving 'apt.xbian.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/contrib/i18n/Translation-en_US  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/contrib/i18n/Translation-en  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/main/i18n/Translation-en_US  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/main/i18n/Translation-en  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/non-free/i18n/Translation-en_US  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/non-free/i18n/Translation-en  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/rpi/i18n/Translation-en_US  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/rpi/i18n/Translation-en  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/main/binary-armhf/Packages  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/contrib/binary-armhf/Packages  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/non-free/binary-armhf/Packages  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/rpi/binary-armhf/Packages  Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname)

W: Failed to fetch mirror://apt.xbian.org/mirror.txt/dists/stable/main/binary-armhf/Packages  No mirror file '/var/lib/apt/mirrors/apt.xbian.org_mirror.txt' found  [Mirror: ]

W: Failed to fetch mirror://apt.xbian.org/mirror.txt/dists/stable/rpi-wheezy/binary-armhf/Packages  No mirror file '/var/lib/apt/mirrors/apt.xbian.org_mirror.txt' found  [Mirror: ]

E: Some index files failed to download. They have been ignored, or old ones used instead.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  (Solved) - Update error after disabling CEC adapter supernano 8 21,441 18th May, 2020 09:28 PM
Last Post: Antonio
  (Solved) GPG error while running apt-get update Joecastra 9 23,470 29th May, 2016 02:26 AM
Last Post: Nachteule
  Gpg error when trying to update onyx666 5 15,692 16th Sep, 2015 06:50 PM
Last Post: Skywatch

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 12th May, 2025, 03:33 AM Powered By MyBB, © 2002-2025 MyBB Group.