apt-get install ignores long package names

Bug #365611 reported by Evgeny Kapun
6
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: apt

Ubuntu 9.04 amd64, apt 0.7.20.2ubuntu6.
When package name given to `apt-get install` is too long, it is just ignored:

# apt-get install aaaaaaaa
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package aaaaaaaa
# apt-get install aaaaaaaaaaaaaaaa... ('a' x 500)
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
(apt-get ignored nonexistent package).

Related branches

Revision history for this message
Daniel Sorichetti (sorichetti-daniel) wrote :

Can confirm.

"sudo apt-get install aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

returns:

"Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libnspr4-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded."

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

Did you hit a package that triggered this limit?

Changed in apt (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Evgeny Kapun (abacabadabacaba) wrote :

No. I found this bug while reading apt source code.

Revision history for this message
Robert Roth (evfool) wrote :

I can not reproduce this anymore, seems to be fixed, but I can not find the relevant change. Can anyone reconfirm this behavior?

Changed in apt (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (9.2 KiB)

This bug was fixed in the package apt - 0.8.11.5ubuntu1

---------------
apt (0.8.11.5ubuntu1) natty; urgency=low

  * Merged from debian/sid

apt (0.8.11.5) unstable; urgency=low

  [ Christian Perrier ]
  * Add missing dot in French translation of manpages. Merci, Olivier
    Humbert.
  * French translation update
  * French manpages translation update

  [ David Kalnischkies ]
  * apt-pkg/depcache.cc:
    - party revert fix in 0.8.11.2 which marked all packages as manual
      installed if the FromUser bit is set in the MarkInstall call.
      The default for this bit is true and aptitude depends on the old
      behavior so the package is only marked as manual if its not marked
      ("old" behavior) or if automatic installation is enabled - which
      aptitude disables always (see also #613775)

apt (0.8.11.4) unstable; urgency=low

  [ David Kalnischkies ]
  * apt-pkg/contrib/error.cc:
    - ensure that va_list is not invalid in second try
  * cmdline/apt-get.cc:
    - don't remove new dependencies of garbage packages (Closes: #613420)

  [ Michael Vogt ]
  * test/integration/*
    - fix dashish in the integration tests

apt (0.8.11.3) unstable; urgency=low

  * apt-pkg/contrib/fileutl.cc:
    - really detect bigendian machines by including config.h,
      so we can really (Closes: #612986)
  * apt-pkg/contrib/mmap.cc:
    - Base has as 'valid' failure states 0 and -1 so add a simple
      validData method to check for failure states

apt (0.8.11.2) unstable; urgency=low

  [ Michael Vogt ]
  * merged lp:~evfool/apt/fix641673:
    - String-fix in the source and the translations for the grammatical
      mistake reported in bug LP: #641673, thanks to Robert Roth
  * merged lp:~evfool/apt/fix418552:
    - Grammar fix for bug LP: #418552, thanks to Robert Roth

  [ David Kalnischkies ]
  * cmdline/apt-get.cc:
    - add --install-suggests option (Closes: #473089)
  * apt-pkg/depcache.cc:
    - mark a package which was requested to be installed on commandline
      always as manual regardless if it is already marked or not as the
      marker could be lost later by the removal of rdepends (Closes: #612557)
  * methods/rred.cc:
    - read patch into MMap only if we work on uncompressed patches
    - update size of dynamic MMap as we write in from the outside
  * apt-pkg/contrib/mmap.cc:
    - do not try to free the mapping if its is unset
  * apt-pkg/contrib/fileutl.cc:
    - reorder the loaded filesize bytes for big endian (Closes: #612986)
      Thanks to Jörg Sommer for the detailed analyse!

apt (0.8.11.1) unstable; urgency=low

  [ Stefan Lippers-Hollmann ]
  * cmdline/apt-key:
    - fix root test which prevented setting of trustdb-name
      which lets gpg fail if it adds/remove keys from trusted.gpg
      as it tries to open the (maybe) not existent /root/.gnupg

  [ David Kalnischkies ]
  * debian/apt.symbols:
    - add more arch dependent symbols

apt (0.8.11) unstable; urgency=low

  [ David Kalnischkies ]
  * apt-pkg/depcache.cc:
    - add SetCandidateRelease() to set a candidate version and
      the candidates of dependencies if needed to a specified
      release (Closes: #572709)
    - allow conflicts in the same group again (...

Read more...

Changed in apt (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.