This usually happens because your input buffer fed some garbage to apt before the 'y'. Perhaps you accidentally hit <enter> twice on the command, or a space, or any other random key, really. It's hard to say exactly how or why, without having been there, but it aborts when it can't parse the input (which is a sane thing to do), so it wasn't so much that it was doing the wrong thing based on your input, but that your input was, for some reason, not what it was expecting.
Blame your fingers, your terminal, your ssh session, your cat that distracted you before hitting a random control sequence on your keyboard, it's a bit hard to tell after the fact, so closing this as invalid. ** Changed in: apt (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apt in Ubuntu. https://bugs.launchpad.net/bugs/1465814 Title: Apt did the opposite of what I told it to do when it asked me a yes or no question Status in apt package in Ubuntu: Invalid Bug description: Today I executed the command: sudo apt-get dist-upgrade And this was the output: Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: aptdaemon aptdaemon-data python-aptdaemon python-aptdaemon.gtk3widgets python3-aptdaemon python3-aptdaemon.gtk3widgets python3-aptdaemon.pkcompat wpasupplicant 8 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade. Need to get 1,146 kB of archives. After this operation, 3,072 B of additional disk space will be used. Do you want to continue? [Y/n] So I answered 'y' (without the quotes), and this was the output: Abort. And it seemingly aborted instead of doing what I said, although when I ran the command again, it installed the upgrades instead of aborting, but I just thought that I should report this as it seemed buggy as this is not what it is meant to do. --- OS Information: Description: Ubuntu 15.04 Release: 15.04 Package Information (I got this information after upgrading those packages, and the error occurred before the upgrade, so the version it occurred on might have been the previous to this): apt: Installed: 1.0.9.7ubuntu4 Candidate: 1.0.9.7ubuntu4 Version table: *** 1.0.9.7ubuntu4 0 500 http://gb.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages 100 /var/lib/dpkg/status To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1465814/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp