LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2013, 08:10 AM   #1
yravi104
LQ Newbie
 
Registered: Dec 2012
Posts: 7

Rep: Reputation: Disabled
not able to do the update on ubuntu 12.10 64 quantal 64 bit machine.


Hi,


When I am trying to run the apt-get update as a root user on ubuntu 12.10 64 bit am getting the error.
Here is the error message:
Get:18 http://us.archive.ubuntu.com quantal-backports/multiverse Sources [781 B]
Fetched 387 kB in 20s (19.1 kB/s)
W: Failed to fetch http://archive.canonical.com/ubuntu/...uantal/Release Unable to find expected entry 'partner/binary-1386/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...uantal/Release Unable to find expected entry 'main/binary-1386/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...curity/Release Unable to find expected entry 'main/binary-1386/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...pdates/Release Unable to find expected entry 'main/binary-1386/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...kports/Release Unable to find expected entry 'main/binary-1386/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.



The content of my sources.list file is as below:
deb http://us.archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse

###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu quantal partner
deb-src http://archive.canonical.com/ubuntu quantal partner


The detail of my machine:
Linux 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux.

The outpput of the command lsb_release -a is as below:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal


Please help me to resolve the issue. If need any more information please let me know.

Thanks.
 
Old 03-30-2013, 09:11 AM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
Quote:
Unable to find expected entry 'partner/binary-1386/Packages'
Are you copied this text from console window by "copy and paste" or have written it here by hand? Because the entry should look that: 'partner/binary-i386/Packages'.

Use command
Code:
apt-get clean
and check again.

Last edited by eSelix; 03-30-2013 at 09:13 AM.
 
Old 03-30-2013, 09:51 AM   #3
yravi104
LQ Newbie
 
Registered: Dec 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eSelix View Post
Are you copied this text from console window by "copy and paste" or have written it here by hand? Because the entry should look that: 'partner/binary-i386/Packages'.

Use command
Code:
apt-get clean
and check again.

Thanks for reply.

I ran the command apt-get clean as a root user.
And than tried running command: apt-get clean
But still the error exist.
Please reply for help.

Thank you.
 
Old 03-30-2013, 10:04 AM   #4
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Make sure nothing is blocking your connection to the repository, I dont know perhaps a firewall or something on your router.
try issuing the command
Code:
sudo apt-get clean
or the command
Code:
sudo apt-get -f install
good luck to you
 
Old 03-30-2013, 10:23 AM   #5
yravi104
LQ Newbie
 
Registered: Dec 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TroN-0074 View Post
Make sure nothing is blocking your connection to the repository, I dont know perhaps a firewall or something on your router.
try issuing the command
Code:
sudo apt-get clean
or the command
Code:
sudo apt-get -f install
good luck to you

Thanks for the help.
I tried the command:
sudo apt-get -f install
It is showing that : 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I also tried opening the URL in the browser and it is working fine.
So not sure whether it is blocking on the firewall or the router.

I also tried running the strace command :
strace apt-get update.


stat("/var/cache/apt/pkgcache.bin", {st_mode=S_IFREG|0644, st_size=1547749, ...}) = 0
unlink("/var/cache/apt/pkgcache.bin") = 0
stat("/var/cache/apt/srcpkgcache.bin", {st_mode=S_IFREG|0644, st_size=17156, ...}) = 0
unlink("/var/cache/apt/srcpkgcache.bin") = 0
stat("/var/cache/apt/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/var/cache/apt/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/var/cache/apt/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 3 entries */, 32768) = 80
stat("/var/cache/apt/archives", {st_mode=S_IFDIR|0755, st_size=36864, ...}) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
stat("/var/cache/apt/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/var/cache/apt/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/var/cache/apt/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 3 entries */, 32768) = 80
stat("/var/cache/apt/archives", {st_mode=S_IFDIR|0755, st_size=36864, ...}) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
open("/var/lib/dpkg/lock", O_RDWR|O_CREAT|O_NOFOLLOW, 0640) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
fcntl(4, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0
openat(AT_FDCWD, "/var/lib/dpkg/updates/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 5
getdents(5, /* 2 entries */, 32768) = 48
getdents(5, /* 0 entries */, 32768) = 0
close(5) = 0
close(4) = 0
write(2, "W", 1W) = 1
write(2, ": ", 2: ) = 2
write(2, "Failed to fetch http://archive.c"..., 190Failed to fetch http://archive.canonical.com/dists/quantal/Release Unable to find expected entry 'partner/binary-1386/Packages' in Release file (Wrong sources.list entry or malformed file)
) = 190
write(2, "\n", 1
) = 1
write(2, "W", 1W) = 1
write(2, ": ", 2: ) = 2
write(2, "Failed to fetch http://extras.ub"..., 190Failed to fetch http://extras.ubuntu.com/ubuntu/dists/quantal/Release Unable to find expected entry 'main/binary-1386/Packages' in Release file (Wrong sources.list entry or malformed file)
) = 190
write(2, "\n", 1
) = 1
write(2, "W", 1W) = 1
write(2, ": ", 2: ) = 2
write(2, "Failed to fetch http://security."..., 201Failed to fetch http://security.ubuntu.com/ubuntu/di...curity/Release Unable to find expected entry 'main/binary-1386/Packages' in Release file (Wrong sources.list entry or malformed file)
) = 201


Thanks for your reply.


And below is the output. As I am new am not able to figure out what exactly it is referring:
 
Old 03-30-2013, 10:35 AM   #6
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Share your /etc/apt/sources.list file. Seems some pb with that.
Code:
~$ cat /etc/apt/sources.list
Also, use [code][code] around commands output that you're sharing. This option is available under menu when you Reply to Thread.
 
Old 03-30-2013, 10:40 AM   #7
yravi104
LQ Newbie
 
Registered: Dec 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi,

Here is my /etc/apt/sources.list file content:




# deb cdrom:[Ubuntu 12.10 _Quantal Quetzal_ - Release amd64 (20121017.5)]/ quantal main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://in.archive.ubuntu.com/ubuntu/ quantal main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ quantal main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ quantal-updates main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ quantal-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ quantal universe
deb-src http://in.archive.ubuntu.com/ubuntu/ quantal universe
deb http://in.archive.ubuntu.com/ubuntu/ quantal-updates universe
deb-src http://in.archive.ubuntu.com/ubuntu/ quantal-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://in.archive.ubuntu.com/ubuntu/ quantal multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ quantal multiverse
deb http://in.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ quantal-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu quantal-security main restricted
deb-src http://security.ubuntu.com/ubuntu quantal-security main restricted
deb http://security.ubuntu.com/ubuntu quantal-security universe
deb-src http://security.ubuntu.com/ubuntu quantal-security universe
deb http://security.ubuntu.com/ubuntu quantal-security multiverse
deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse


Thanks.
 
Old 03-30-2013, 10:49 AM   #8
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Go to this link, select appropriate requried updates using check boxes provided in the link, and generate a new source.list file.

Then you can again run the update and let's know if pb persists..
Code:
~$ sudo apt-get update
 
Old 03-30-2013, 11:03 AM   #9
yravi104
LQ Newbie
 
Registered: Dec 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi,

Yes I followed the Link. And also tried generating the file.
Here is the File that I have generated:


###### Ubuntu Main Repos
deb http://in.archive.ubuntu.com/ubuntu/ quantal main
deb-src http://in.archive.ubuntu.com/ubuntu/ quantal main

###### Ubuntu Update Repos
deb http://in.archive.ubuntu.com/ubuntu/ quantal-security main
deb http://in.archive.ubuntu.com/ubuntu/ quantal-updates main
deb http://in.archive.ubuntu.com/ubuntu/ quantal-backports main
deb-src http://in.archive.ubuntu.com/ubuntu/ quantal-security main
deb-src http://in.archive.ubuntu.com/ubuntu/ quantal-updates main
deb-src http://in.archive.ubuntu.com/ubuntu/ quantal-backports main

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu quantal partner
deb-src http://archive.canonical.com/ubuntu quantal partner

###### Ubuntu Extras Repo
deb http://extras.ubuntu.com/ubuntu quantal main
deb-src http://extras.ubuntu.com/ubuntu quantal main

##############################################################
##################### UNOFFICIAL REPOS ######################
##############################################################

###### 3rd Party Binary Repos

#### LibreOffice - http://www.documentfoundation.org/download/
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1378B444
deb http://ppa.launchpad.net/libreoffice/ppa/ubuntu quantal main


####### 3rd Party Source Repos

#### LibreOffice (Source) - http://www.documentfoundation.org/download/
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1378B444
deb-src http://ppa.launchpad.net/libreoffice/ppa/ubuntu quantal main



And after that I ran the command :
sudo apt-get update

But it was unsuccessful.


Below is the error message:

Fetched 256 kB in 8s (28.6 kB/s)
W: Failed to fetch http://ppa.launchpad.net/libreoffice...uantal/Release Unable to find expected entry 'main/binary-1386/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/quantal/Release Unable to find expected entry 'main/binary-1386/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://archive.canonical.com/ubuntu/...uantal/Release Unable to find expected entry 'partner/binary-1386/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/...uantal/Release Unable to find expected entry 'main/binary-1386/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/...curity/Release Unable to find expected entry 'main/binary-1386/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/...pdates/Release Unable to find expected entry 'main/binary-1386/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/...kports/Release Unable to find expected entry 'main/binary-1386/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.



Thanks for the reply.
 
Old 03-30-2013, 11:14 AM   #10
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Can you comment out those error generating URLs in your source.list file and then run it again? OR, just keep following two URLs and then run update:
Code:
~$ cat /etc/apt/source.list
###### Ubuntu Main Repos
 deb http://in.archive.ubuntu.com/ubuntu/ quantal main
 deb-src http://in.archive.ubuntu.com/ubuntu/ quantal main

~$ sudo apt-get update
PS: As I mentioned earlier, please use [code][code](option is available when you reply to the thread, just select your text and click on # symbol from menu) around the command and output that you're sharing.
 
Old 03-30-2013, 04:36 PM   #11
albinard
Member
 
Registered: Jan 2011
Location: New Mexico
Distribution: Xubuntu Core
Posts: 183

Rep: Reputation: 58
As eSelix said, there appears to be a typo in the requests that are going out to the repositories.
You are getting a return of:
Unable to find expected entry 'main/binary-1386/Packages'

....1386... is not a correct entry to expect, the correct one is i386

I expect you'll find a place where that typo originated.
 
Old 03-30-2013, 08:47 PM   #12
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
What is output of these commands
Code:
dpkg --print-architecture
dpkg --print-foreign-architectures
If foreign architecture is "1386" then edit as root the file "/etc/dpkg/dpkg.cfg.d/multiarch" and change it to "i386".

Last edited by eSelix; 03-30-2013 at 08:55 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Install Ubuntu 12.10 or Upgrade to Ubuntu 12.10 (Quantal Quetzal) from Ubuntu allu john sudhakar Linux - Newbie 1 10-26-2012 12:59 AM
How do i tell if 32 bit or 64 bit ubuntu is installed on a machine? lel4866 Linux - Software 15 05-08-2012 01:18 AM
segmantation fault on a 64 bit machine caused by binary compiled on a 32 bit machine ninofattore Linux - Newbie 1 10-13-2011 02:48 PM
PC freezes totally while accessing physical memory on Ubuntu 10.04(64-bit machine) pavan8085 Linux - Kernel 3 06-01-2011 03:32 PM
Can we install ubuntu AMD 64 bit on intel 64 bit machine ervaneet82 Linux - General 2 11-11-2010 05:40 PM


All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration