Package: apt Version: 0.8.16 exp5ubuntu14.2 Justification: breaks unrelated software Severity: critical
*** Please type your report below this line *** After run below scripts with 'apt-get install': #!/bin/sh export LC_ALL="en_US.utf8" export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin export KRB5CCNAME='FILE:/tmp/krb5cc_2060769110' APT_CONFIG=/home/CORPUSERS/28849869/test/./temp_4xuer2oosrcf/_buildenv/etc/apt/apt.conf /opt/semc-apt0.8/bin/apt-get -c=/home/CORPUSERS/28849869/test/./temp_4xuer2oosrcf/_buildenv/etc/apt/apt.conf -y update APT_CONFIG=/home/CORPUSERS/28849869/test/./temp_4xuer2oosrcf/_buildenv/etc/apt/apt.conf /opt/semc-apt0.8/bin/apt-get -c=/home/CORPUSERS/28849869/test/./temp_4xuer2oosrcf/_buildenv/etc/apt/apt.conf -y --solver c2d-solver -o DPkg::options::="--force-overwrite" --allow-unauthenticated install pp-tsubasa-ct-ct variant-userdebug result-flashable apt-get download & install the pacakge 'fw-rpm-tsubasa-ct'(which depends by package pp-tsubasa-ct-ct) with version 'BLUE-8960-17X1-CT-121011-2257'. we have 2 version of pacakge 'fw-rpm-tsubasa-ct' in the source list repositories. version 'BLUE-8960-17X1-CT-121011-2257' locate in the local repository(deb file:/home/CORPUSERS/28849869/test/./ /) version 'BLUE-8960-17XX-CT-121009-0801' locate in the remote repository(deb http://androidswrepo-cnbj.sonyericsson.net/ 9.0.E.0.192 semc) In the older behavior of apt-get , it will choose the latest version of package from source lists. Say version '17XX' should be later than version '17X1' because character 'X' will be later than number '1'. But apt-get choose version 'BLUE-8960-17X1-CT-121011-2257'. So I have 2 questions: 1.What is the behavior of apt-get when selecting version of a specific package among different source lists? 2.Is there any way we could set a rule to sepcify a specific source that have a higher priority that other sources in the source list? Thank you. -- Package-specific info: -- /etc/apt/preferences present -- APT::Architecture "arm"; Dir "/home/CORPUSERS/28849869/test/./temp_1mxjpmgixvthu/_buildenv/"; Dir::Cache "var/cache/apt"; Dir::Cache::archives "archives/"; Dir::Cache::srcpkgcache "srcpkgcache.bin"; Dir::Cache::pkgcache "pkgcache.bin"; Dir::State "var/lib/"; Dir::State::lists "apt/lists/"; Dir::State::cdroms "apt/cdroms.list"; Dir::State::status "/home/CORPUSERS/28849869/test/./temp_1mxjpmgixvthu/_buildenv/var/lib/dpkg/status"; Dir::Etc "etc/apt"; Dir::Etc::sourcelist "sources.list"; Dir::Etc::sourceparts "sources.list.d"; Dir::Etc::vendorlist "vendors.list"; Dir::Etc::vendorparts "vendors.list.d"; Dir::Etc::main "apt.conf"; Dir::Etc::parts "apt.conf.d"; Dir::Etc::preferences "preferences"; Dir::Etc::preferencesParts "preferences.d"; Dir::Bin::Methods "/opt/semc-apt0.8/lib/apt/methods/"; Acquire::Languages "none"; Acquire::CompressionTypes::Order:: "gz"; DPkg::Run-Directory "/home/CORPUSERS/28849869/test/./temp_1mxjpmgixvthu/"; DPkg::Pre-Install-Pkgs " true "; DPkg::Post-Invoke "echo post-invoke"; DPkg { Options {"--root=/home/CORPUSERS/28849869/test/./temp_1mxjpmgixvthu";"--log=/home/CORPUSERS/28849869/test/./temp_1mxjpmgixvthu/_buildenv/var/log/dpkg.log";"--admindir=/home/CORPUSERS/28849869/test/./temp_1mxjpmgixvthu/_buildenv/var/lib/dpkg";} }; -- /etc/apt/sources.list -- deb file:/home/CORPUSERS/28849869/test/./ / deb http://androidswrepo-cnbj.sonyericsson.net/ 9.0.E.0.192 semc -- System Information: Debian Release: squeeze/sid APT prefers lucid-updates APT policy: (900, 'lucid-updates'), (900, 'lucid-security'), (900, 'lucid') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-44-generic (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages apt depends on: ii libc6 2.11.1-0ubuntu7.11 Embedded GNU C Library: Shared lib ii libgcc1 1:4.4.3-4ubuntu5.1 GCC support library ii libstdc++6 4.4.3-4ubuntu5.1 The GNU Standard C++ Library v3 Versions of packages apt recommends: ii ubuntu-keyring 2010.11.09 GnuPG keys of the Ubuntu archive Versions of packages apt suggests: ii apt-doc 0.8.10.3+squeeze1 Documentation for APT ii aptitude 0.4.11.11-1ubuntu10lucid1 terminal-based package manager ii bzip2 1.0.5-4ubuntu0.2 high-quality block-sorting file co ii dpkg-dev 1.15.5.6ubuntu4.6 Debian package development tools ii lzma 4.43-14ubuntu2 Compression method of 7z format in ii python-apt 0.7.94.2ubuntu6.4 Python interface to libapt-pkg ii synaptic 0.63.1ubuntu7 Graphical package manager He Qingsheng SWE(Software Environment)