LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   not able to do the update on ubuntu 12.10 64 quantal 64 bit machine. (https://www.linuxquestions.org/questions/linux-newbie-8/not-able-to-do-the-update-on-ubuntu-12-10-64-quantal-64-bit-machine-4175456137/)

yravi104 03-30-2013 07:10 AM

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.

eSelix 03-30-2013 08:11 AM

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.

yravi104 03-30-2013 08:51 AM

Quote:

Originally Posted by eSelix (Post 4921566)
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.

TroN-0074 03-30-2013 09:04 AM

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

yravi104 03-30-2013 09:23 AM

Quote:

Originally Posted by TroN-0074 (Post 4921592)
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:

shivaa 03-30-2013 09:35 AM

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.

yravi104 03-30-2013 09:40 AM

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.

shivaa 03-30-2013 09:49 AM

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

yravi104 03-30-2013 10:03 AM

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.

shivaa 03-30-2013 10:14 AM

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.

albinard 03-30-2013 03:36 PM

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.

eSelix 03-30-2013 07:47 PM

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".


All times are GMT -5. The time now is 02:54 AM.