why the ubuntu 11.10 64bit os apt-get update to fetch 32bit source?
In my company just need to use 64bit os .so we don't mirror the 32bit source *.deb to our mirror server inside company. It's work good on Ubuntu 10.04 Ubuntu 10.10 and Ubuntu 11.04. But it don't work on Ubuntu 11.10 . I find that when the 64bit OS client to update source list..It's will to fetch the 32bit source ,the "i386 Packages" .so , what I need to do to fix it?
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Related FAQ:
None Link to a FAQ
Revision history for this message
|
#1 |
Which package? Some applications only run in 32 bit mode (which can run under x86-64/amd64 systems). Thus there are compatibility packages in the repository.
Can you provide the terminal output you are referring to?
Revision history for this message
|
#2 |
yes. first, I have a mirrors source in my Intranet ..
the key config is :
set base_path /opt/mirror_
set mirror_path $base_path/mirror
set skel_path $base_path/skel
set var_path $base_path/var
set cleanscript $var_path/clean.sh
set nthreads 20
set defaultarch amd64
set _tilde 0
so ,in my mirrors server there is no "binary-i386" dir. In my company ,we just need "binary-amd64" applications。
it's work fine on Ubuntu 10.04 Ubuntu 11.04 ,but not work fine on Ubuntu 11.10 (we are mirros serer just sync the ubuntu10.04, ubuntu11.04,and ubuntu 11.10 )
when on Ubuntu11.10
I edit the sources.list file . just use my Intranet mirrors server
when I sudo apt-get update
there will have some error like
"
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Ign http://
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
"
yes , i know the error. there is no i386 Packages, but I don't need ..
the problem's key it when some shell script include the action "sudo apt-get update ",the shell script will break off.
Revision history for this message
|
#3 |
yes. first, I have a mirrors source in my Intranet ..
the key config is :
set base_path /opt/mirror_
set mirror_path $base_path/mirror
set skel_path $base_path/skel
set var_path $base_path/var
set cleanscript $var_path/clean.sh
set nthreads 20
set defaultarch amd64
set _tilde 0
so ,in my mirrors server there is no "binary-i386" dir. In my company ,we just need "binary-amd64" applications。
it's work fine on Ubuntu 10.04 Ubuntu 11.04 ,but not work fine on Ubuntu 11.10 (we are mirros serer just sync the ubuntu10.04, ubuntu11.04,and ubuntu 11.10 )
when on Ubuntu11.10
I edit the sources.list file . just use my Intranet mirrors server
when I sudo apt-get update
there will have some error like
"
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Ign http://
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
"
yes , i know the error. there is no i386 Packages, but I don't need ..
the problem's key it when some shell script include the action "sudo apt-get update ",the shell script will break off.
Revision history for this message
|
#4 |
Can you post your sources.list? Also, check int /etc/apt/ for your apt.conf and apt.conf.d configurations - it looks like you have either an incorrect architecture specification, or apt::architecture setting.
Revision history for this message
|
#5 |
file in mirror server /etc/apt/
# mkdir /opt/mirror_
# mkdir /opt/mirror_
# cat /etc/apt/
set base_path /opt/mirror_
set mirror_path $base_path/mirror
set skel_path $base_path/skel
set var_path $base_path/var
set cleanscript $var_path/clean.sh
set nthreads 20
set defaultarch amd64
set _tilde 0
# 163.com source 10.04
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
# 163.com source 11.04
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
# Ubuntu 11.10 源
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb http://
deb-src http://
deb http://
deb-src http://
deb-src http://
## 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.
# 10.04 parten
deb http://
deb-src http://
# 11.04 parten
deb http://
deb-src http://
# 11.10 parten
deb http://
deb-src http://
Revision history for this message
|
#6 |
File in Client computer /etc/apt/
# mydns.com source
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb http://
deb-src http://
deb http://
deb-src http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
Revision history for this message
|
#7 |
# mydns.com source Ubuntu 11.10
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb http://
deb-src http://
deb http://
deb-src http://
deb-src http://
deb http://
deb-src http://
the ubuntu 10.04 is work fine .but th ubuntu 11.10 have the error about "Err http://
404 Not Found"
Revision history for this message
|
#8 |
This question was expired because it remained in the 'Open' state without activity for the last 15 days.
Revision history for this message
|
#9 |
We have exactly the same problem. We want to upgrade our clients from 11.04 to 12.04 but with 12.04 apt-get tries to fetch 32bit sources from our mirror which just holds the amd64 packages. We have installed with the 64bit alternate-CD.
Here some infos and output:
root@testmachin
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
root@testmachin
64
root@testmachin
Linux testmachine 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
root@testmachin
Ign http://
Ign http://
Ign http://
Ign http://
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:33 http://
Get:34 http://
Ign http://
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Fetched 13.0 MB in 3s (3,677 kB/s)
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
E: Some index files failed to download. They have been ignored, or old ones used instead.
root@testmachin
root@testmachin
root@testmachin
Revision history for this message
|
#10 |
Bit late. This is because of multi-arch which is enabled by default so that apt will go out and try find both i386 & amd64 pkgs in the same archive list. You can change it in apt.conf however I prefer to do this in sources.list
deb [arch=amd64] http://