Çeviri girişlerini apt olarak nasıl kaldırabilirim?


55

Bu çıktı aptitude update:

Ign http://archive.canonical.com natty InRelease
Ign http://extras.ubuntu.com natty InRelease
Ign http://dl.google.com stable InRelease
Ign http://security.ubuntu.com natty-security InRelease
Hit http://deb.torproject.org natty InRelease
Get:1 http://dl.google.com stable Release.gpg [198 B]
Ign http://us.archive.ubuntu.com natty InRelease
Ign http://us.archive.ubuntu.com natty-updates InRelease
Hit http://archive.canonical.com natty Release.gpg
Hit http://extras.ubuntu.com natty Release.gpg
Hit http://security.ubuntu.com natty-security Release.gpg
Hit http://us.archive.ubuntu.com natty Release.gpg
Hit http://security.ubuntu.com natty-security Release
Hit http://archive.canonical.com natty Release
Hit http://extras.ubuntu.com natty Release
Get:2 http://dl.google.com stable Release [1,338 B]
Hit http://us.archive.ubuntu.com natty-updates Release.gpg
Hit http://security.ubuntu.com natty-security/main Sources
Hit http://archive.canonical.com natty/partner amd64 Packages
Hit http://deb.torproject.org natty/main amd64 Packages
Hit http://extras.ubuntu.com natty/main Sources
Hit http://us.archive.ubuntu.com natty Release
Hit http://security.ubuntu.com natty-security/restricted Sources
Hit http://security.ubuntu.com natty-security/universe Sources
Hit http://security.ubuntu.com natty-security/multiverse Sources
Hit http://security.ubuntu.com natty-security/main amd64 Packages
Hit http://security.ubuntu.com natty-security/restricted amd64 Packages
Ign http://archive.canonical.com natty/partner TranslationIndex
Hit http://extras.ubuntu.com natty/main amd64 Packages
Ign http://extras.ubuntu.com natty/main TranslationIndex
Hit http://security.ubuntu.com natty-security/universe amd64 Packages
Hit http://security.ubuntu.com natty-security/multiverse amd64 Packages
Ign http://security.ubuntu.com natty-security/main TranslationIndex
Ign http://security.ubuntu.com natty-security/multiverse TranslationIndex
Ign http://security.ubuntu.com natty-security/restricted TranslationIndex
Ign http://deb.torproject.org natty/main TranslationIndex
Ign http://security.ubuntu.com natty-security/universe TranslationIndex
Hit http://us.archive.ubuntu.com natty-updates Release
Hit http://us.archive.ubuntu.com natty/main Sources
Hit http://us.archive.ubuntu.com natty/restricted Sources
Hit http://us.archive.ubuntu.com natty/universe Sources
Hit http://us.archive.ubuntu.com natty/multiverse Sources
Hit http://us.archive.ubuntu.com natty/main amd64 Packages
Hit http://us.archive.ubuntu.com natty/restricted amd64 Packages
Hit http://us.archive.ubuntu.com natty/universe amd64 Packages
Hit http://us.archive.ubuntu.com natty/multiverse amd64 Packages
Ign http://us.archive.ubuntu.com natty/main TranslationIndex
Ign http://us.archive.ubuntu.com natty/multiverse TranslationIndex
Ign http://us.archive.ubuntu.com natty/restricted TranslationIndex
Ign http://us.archive.ubuntu.com natty/universe TranslationIndex
Hit http://us.archive.ubuntu.com natty-updates/main Sources
Hit http://us.archive.ubuntu.com natty-updates/restricted Sources
Hit http://us.archive.ubuntu.com natty-updates/universe Sources
Get:3 http://dl.google.com stable/main amd64 Packages [469 B]
Ign http://dl.google.com stable/main TranslationIndex
Hit http://us.archive.ubuntu.com natty-updates/multiverse Sources
Hit http://us.archive.ubuntu.com natty-updates/main amd64 Packages
Hit http://us.archive.ubuntu.com natty-updates/restricted amd64 Packages
Hit http://us.archive.ubuntu.com natty-updates/universe amd64 Packages
Hit http://us.archive.ubuntu.com natty-updates/multiverse amd64 Packages
Ign http://us.archive.ubuntu.com natty-updates/main TranslationIndex
Ign http://us.archive.ubuntu.com natty-updates/multiverse TranslationIndex
Ign http://us.archive.ubuntu.com natty-updates/restricted TranslationIndex
Ign http://us.archive.ubuntu.com natty-updates/universe TranslationIndex
Ign http://archive.canonical.com natty/partner Translation-en_US
Ign http://extras.ubuntu.com natty/main Translation-en_US
Ign http://extras.ubuntu.com natty/main Translation-en
Ign http://archive.canonical.com natty/partner Translation-en
Ign http://security.ubuntu.com natty-security/main Translation-en_US
Ign http://security.ubuntu.com natty-security/main Translation-en
Ign http://security.ubuntu.com natty-security/multiverse Translation-en_US
Ign http://security.ubuntu.com natty-security/multiverse Translation-en
Ign http://security.ubuntu.com natty-security/restricted Translation-en_US
Ign http://security.ubuntu.com natty-security/restricted Translation-en
Ign http://security.ubuntu.com natty-security/universe Translation-en_US
Ign http://security.ubuntu.com natty-security/universe Translation-en
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Hit http://ppa.launchpad.net natty Release.gpg
Hit http://ppa.launchpad.net natty Release.gpg
Hit http://ppa.launchpad.net natty Release.gpg
Hit http://ppa.launchpad.net natty Release.gpg
Hit http://ppa.launchpad.net natty Release.gpg
Hit http://ppa.launchpad.net natty Release
Ign http://dl.google.com stable/main Translation-en_US
Hit http://ppa.launchpad.net natty Release
Hit http://ppa.launchpad.net natty Release
Hit http://ppa.launchpad.net natty Release
Hit http://ppa.launchpad.net natty Release
Ign http://dl.google.com stable/main Translation-en
Hit http://ppa.launchpad.net natty/main Sources
Hit http://ppa.launchpad.net natty/main amd64 Packages
Ign http://ppa.launchpad.net natty/main TranslationIndex
Hit http://ppa.launchpad.net natty/main Sources
Hit http://ppa.launchpad.net natty/main amd64 Packages
Ign http://ppa.launchpad.net natty/main TranslationIndex
Hit http://ppa.launchpad.net natty/main Sources
Hit http://ppa.launchpad.net natty/main amd64 Packages
Ign http://ppa.launchpad.net natty/main TranslationIndex
Hit http://ppa.launchpad.net natty/main Sources
Hit http://ppa.launchpad.net natty/main amd64 Packages
Ign http://ppa.launchpad.net natty/main TranslationIndex
Hit http://ppa.launchpad.net natty/main Sources
Ign http://us.archive.ubuntu.com natty/main Translation-en_US
Ign http://us.archive.ubuntu.com natty/main Translation-en
Hit http://ppa.launchpad.net natty/main amd64 Packages
Ign http://ppa.launchpad.net natty/main TranslationIndex
Ign http://us.archive.ubuntu.com natty/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com natty/multiverse Translation-en
Ign http://us.archive.ubuntu.com natty/restricted Translation-en_US
Ign http://us.archive.ubuntu.com natty/restricted Translation-en
Ign http://us.archive.ubuntu.com natty/universe Translation-en_US
Ign http://us.archive.ubuntu.com natty/universe Translation-en
Ign http://us.archive.ubuntu.com natty-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com natty-updates/main Translation-en
Ign http://us.archive.ubuntu.com natty-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com natty-updates/multiverse Translation-en
Ign http://us.archive.ubuntu.com natty-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com natty-updates/restricted Translation-en
Ign http://us.archive.ubuntu.com natty-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com natty-updates/universe Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en_US
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en_US
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://archive.getdeb.net natty-getdeb InRelease
Ign http://ppa.launchpad.net natty/main Translation-en_US
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en_US
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en_US
Ign http://ppa.launchpad.net natty/main Translation-en
Hit http://archive.getdeb.net natty-getdeb Release.gpg
Hit http://archive.getdeb.net natty-getdeb Release
Ign http://deb.torproject.org natty/main Translation-en_US
Ign http://deb.torproject.org natty/main Translation-en
Hit http://archive.getdeb.net natty-getdeb/apps amd64 Packages
Ign http://archive.getdeb.net natty-getdeb/apps TranslationIndex
Ign http://archive.getdeb.net natty-getdeb/apps Translation-en_US
Ign http://archive.getdeb.net natty-getdeb/apps Translation-en
Fetched 2,005 B in 45s (44 B/s)
Reading package lists...

Çeviri eşyalarından kurtulmamın bir yolu var mı? Çok daha az depoları kontrol etmekten ziyade tonlarca depo kontrolü ile sonuçlanmasından bıktım (69 gerçek repo vs. 169 kontrol)

Yanıtlar:


68

İndirme çevirilerini devre dışı bırakmak için /etc/apt/apt.conf.d/99translations, aşağıdakileri içeren & içine bir dosya oluşturun :

Acquire::Languages "none";

Ayrıca / var / lib / apt / listeleri / içindeki mevcut çeviri dosyalarını kaldırmanız gerekebilir.

Daha fazla bilgi için apt.conf (5) sayfasına bakınız.


Bu öğelerin çoğunu almak için çalıştı, ancak TranslationIndex ile girişleri hala görünmektedir. Bunları nasıl kaldıracağınız hakkında bir fikriniz var mı?
Thomas Ward

2
Bu, 11.10'da apt versiyonunda düzeltilmesi gereken bugs.debian.org/cgi-bin/bugreport.cgi?bug=624218 görünüyor
ajmitch

1
Herhangi bir geri dönüşü var mı?
Thomas Ward,

mükemmel ..... bu çeviri işleri apt-get updateartık görünmüyor
Rakib

1
apt_preferences veya apt.conf için bu nedir? Bu cevap biraz karışık gibi görünüyor.
Jayen

10

Sadece kayıt için (çünkü bazıları bunun üzerine yolculuk yapacak ..) yukarıdaki 99Translations dosyası barf'a uygun olacaktır - "Paketler: *" satırı kaldır - sadece bir satır yeterli:

Acquire::Languages "none";

Ayrıca, apt, hala yerel ayarınız / diliniz için dosyaları alacaktır.


Ubuntu 12.x kullanıyorsanız, pkg çevirilerini almadan apt'yi devre dışı bırakmak istediğiniz şey budur
Flint

1
sudo rm -r /var/lib/apt/lists/*Translation*Mevcut tüm çeviri dizini dosyalarını bundan sonra kaldırmak için komut vermeyi unutmayın
Flint

5

Olduğu toplu bu talebi uygun küme komut işlemesini etkinleştirin çok daha hızlı:

Acquire::http { Pipeline-Depth "200"; }

Ancak tecrübelerime göre indirmelerin bozulmasına neden olabilir; http hata kodları basamaklama gibi görünüyor. Apt-cacher-ng ile görüşüyorsanız (ayna modu veya proxy modu) yeterince güvenli olmalıdır. Aksi takdirde, aynanız kırılırsa etkisiz hale getirmeye hazır olun.

Dilleri ayarlama konusunda tavsiyede bulunabilirim none, çünkü kırılıyor apt-cache search(hiçbiri, yararlı aramaların en az bir dilde tanımlamaya ihtiyaç duyması durumunda hiçbiri anlamına gelmez). Yerel ayar tabanlı varsayılan, gereksiz bölgesel değişkenler içerir, ancak buna benzer bir şey vardır:

Acquire::Languages { "fr"; "en"; };

makul.


Benim için kırılmaz apt-cache search(Ubuntu 13.10).
blueyed

Bu hala Ubuntu 18.04'te yardımcı oluyor mu?
rubo77

0

Bunu ben de bir çözüm ararken buldum. Yeni bir Debian test kurulumuydu. Aşağıdaki komut (yukarıda önerildiği gibi) düzeltti:

sudo rm -r /var/lib/apt/lists/*

Natty sistemi üzerinde test edilmiştir. Bu, Natty'deki sorunu çözmedi. Ancak, birincil sistemimi Precise'a yükselttiğimden beri bu sorun yok: P
Thomas Ward

-1

Dil Desteği'ne gidin, ardından Dilleri Yükle / Kaldır ... 'a tıklayın ve ardından istemediğiniz dillerin işaretini kaldırın.

Tüm dilleri kaldırdıysanız, genel ingilizce için varsayılan olur. ABD'deki paketlerin ayrı bir dil olarak kabul edildiğini, bu nedenle paketlerini kaldırmak için İngilizce'nin işaretini kaldırmanız gerektiğini unutmayın.


Bu sadece GUI'de geçerlidir. Bu aynı zamanda, Tercümanların bu eski sürümlerde apt-get veya yetenek ile toplanmasını engellemez.
Thomas Ward
Sitemizi kullandığınızda şunları okuyup anladığınızı kabul etmiş olursunuz: Çerez Politikası ve Gizlilik Politikası.
Licensed under cc by-sa 3.0 with attribution required.