Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #179256

Re: repairing damage to package manager

From Chuck Hallenbeck <chuckhallenbeck@gmail.com>
Newsgroups linux.debian.user
Subject Re: repairing damage to package manager
Date 2017-03-24 16:50 +0100
Message-ID <tozDs-3Gl-17@gated-at.bofh.it> (permalink)
References <toztL-3Ao-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Correction below:


On Fri, Mar 24, 2017 at 11:30:31AM -0400, Chuck Hallenbeck wrote:
> Hi folks,
> 
> I've been using Debian Stretch for a couple of months, and following
> this list for a month or two. I'm afraid I did something stupid anyway,
> and find myself with a damaged apt-get and can't figure out how to fix
> it short of reinstalling.
> 
> Here is what I did to damage it:
> 
> The discussion about automatic upgrading contained a reference to
> "upgrade-system"  and I decided to give it a try.
> 
> I installed it, placed a recommended set of preferences in
> /etc/apt/preferences.d with a legally named file,  and executed it
> 
> # upgrade-system
> 
> It should me what it wanted to do, mostly no surprises, except it's
> last item wanted to remove dozens and dozens of things, some of which I
> recognized as things I manually requested in connection with an earlier
> (and abandoned) experiment.
> 
> So I said "no" to the prompt. So far so good.
> 
> After a bit, I decided to back out of my interest in upgrade-system,
> and remove it with apt-get remove.
> 
> And here is what I think was stupid:
> 
> I had also played with the command "apt" which is another front to
> apt-get and friends, and perhaps misremembered whether it was already
> present, or whether I had to install it to play with it. What I did
> that was stupid was to add it to the packages to remove, so I entered
> this:
> 
> # apt-get remove upgrade-system apt
> 
> I am now unable to use any of my familiar package tools. Although
> "which" shows me apt-get, it cannot be found when attempting to execute
Sorry! apt-get is not shown by which. aptitude is.


> it. Running aptitude complains about not finding apt-get.
> dpkg-reconfigure doesn't help, nor dpkg -i apt-get.
> 
> Is there anything I can do short of reinstalling? I am no beginner, but
> I am pretty new to Debian.  I am using a base system with a screen
> reader, no desktop. (which I installed with the netinst CD image on
> purpose, despite the defaults, which I don't regard as a problem).
> 
> If I can get out of this one, I promise never to do a stupid thing
> again.
> 
> Chuck
> 
> 
> 
> -- 
> When a clock is hungry it goes back four seconds.

-- 
When a clock is hungry it goes back four seconds.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

repairing damage to package manager Chuck Hallenbeck <chuckhallenbeck@gmail.com> - 2017-03-24 16:40 +0100
  Re: repairing damage to package manager Jonathan Dowland <jmtd@debian.org> - 2017-03-24 16:50 +0100
    Re: repairing damage to package manager Chuck Hallenbeck <chuckhallenbeck@gmail.com> - 2017-03-24 17:00 +0100
      Re: repairing damage to package manager Mark Fletcher <mark27q1@gmail.com> - 2017-03-24 17:00 +0100
      Re: repairing damage to package manager songbird <songbird@anthive.com> - 2017-03-24 20:30 +0100
        Re: repairing damage to package manager Chuck Hallenbeck <chuckhallenbeck@gmail.com> - 2017-03-24 20:40 +0100
  Re: repairing damage to package manager Chuck Hallenbeck <chuckhallenbeck@gmail.com> - 2017-03-24 16:50 +0100
  Re: repairing damage to package manager Jochen Spieker <ml@well-adjusted.de> - 2017-03-24 20:50 +0100
    Re: repairing damage to package manager Chuck Hallenbeck <chuckhallenbeck@gmail.com> - 2017-03-24 21:00 +0100
      Re: repairing damage to package manager Jochen Spieker <ml@well-adjusted.de> - 2017-03-24 22:20 +0100
      Re: repairing damage to package manager Lisi Reisz <lisi.reisz@gmail.com> - 2017-03-25 12:20 +0100
      Re: repairing damage to package manager songbird <songbird@anthive.com> - 2017-03-25 19:20 +0100
        Re: repairing damage to package manager Jochen Spieker <ml@well-adjusted.de> - 2017-03-25 20:10 +0100

csiph-web