Unable to add Backtrack5 repository in my 64bit Ubuntu 11.10

Asked by sujay

Error while using sudo apt-get update

W: Failed to fetch http://64.repository.backtrack-linux.org/dists/revolution/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.

and i have authenticated the repostory using key from http://ubuntuone.com/0BUqPRfUhSLdWHWL1K4NO3

/etc/apt/sources.list looks like this :

# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ dists/oneiric/main/binary-i386/

# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ oneiric main restricted

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

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu oneiric-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu oneiric-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://archive.ubuntu.com/ubuntu oneiric universe
deb-src http://archive.ubuntu.com/ubuntu oneiric universe
deb http://archive.ubuntu.com/ubuntu oneiric-updates universe
deb-src http://archive.ubuntu.com/ubuntu oneiric-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://archive.ubuntu.com/ubuntu oneiric multiverse
deb-src http://archive.ubuntu.com/ubuntu oneiric multiverse
deb http://archive.ubuntu.com/ubuntu oneiric-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu oneiric-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://archive.ubuntu.com/ubuntu oneiric-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu oneiric-backports main restricted universe multiverse

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

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu oneiric partner
# deb-src http://archive.canonical.com/ubuntu oneiric partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu oneiric main
deb-src http://extras.ubuntu.com/ubuntu oneiric main
deb http://64.repository.backtrack-linux.org revolution main microverse non-free testing
deb http://source.repository.backtrack-linux.org revolution main microverse non-free testing

Please help me add the repository

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
enubuntu (mr.tennents) said :
#1

Hi, try to remove the line that you have added and follow this guide:
http://www.ubuntubuzz.com/2011/09/install-backtrack-5-application-in.html

Revision history for this message
abinstudy (abinstudy) said :
#2

 Failed to fetch http://64.repository.backtrack-linux.org/dists/revolution/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)

下面这个解决不了!!
http://www.ubuntubuzz.com/2011/09/install-backtrack-5-application-in.html

Revision history for this message
Josef Johansson (josef86) said :
#3

Actually, this is a "problem" with multiarch settings.

I have not made any further research but found that

'rm /etc/dpkg/dpkg.cfg.d/multiarch '

resolves the problem.

Revision history for this message
Josef Johansson (josef86) said :
#4

I wish I could unsay that.

According to https://groups.google.com/group/hyperdex-discuss/tree/browse_frm/month/2012-03/5c8b46fe14c96273?rnum=31&_done=/group/hyperdex-discuss/browse_frm/month/2012-03?&pli=1 it's possible to add [arch=amd64] to the line.

like so
deb [arch=amd64] http://64.repository.backtrack-linux.org revolution main microverse non-free testing

This is Ubuntu specific. It may be good if you update your documentation regarding this.

Cheers
/Josef

Revision history for this message
Pablo Hörtner (redtux2000) said :
#5

Josef is totally right, this solves the problem. Thank you a lot!

cat /etc/apt/sources.list.d/backtrack.list
## BackTrack Repository
deb http://all.repository.backtrack-linux.org revolution main microverse non-free testing #BackTrack all
deb [arch=i386] http://32.repository.backtrack-linux.org revolution main microverse non-free testing #BackTrack 32-bit
deb [arch=amd64] http://64.repository.backtrack-linux.org revolution main microverse non-free testing #BackTrack 64-bit
deb http://source.repository.backtrack-linux.org revolution main microverse non-free testing #BackTrack sources
deb http://updates.repository.backtrack-linux.org revolution main microverse non-free testing #BackTrack updates

Can you help with this problem?

Provide an answer of your own, or ask sujay for more information if necessary.

To post a message you must log in.