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. |
Quote:
Use command Code:
apt-get clean |
Quote:
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. |
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 Code:
sudo apt-get -f install |
Quote:
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: |
Share your /etc/apt/sources.list file. Seems some pb with that.
Code:
~$ cat /etc/apt/sources.list |
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. |
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 |
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. |
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 |
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. |
What is output of these commands
Code:
dpkg --print-architecture |
All times are GMT -5. The time now is 02:54 AM. |