Re: [DNG] corrupted aptitude state -- SOLVED

2017-01-25 Thread Hendrik Boom
On Wed, Jan 25, 2017 at 08:25:31PM +0100, Florian Zieboll wrote:
> On Wed, 25 Jan 2017 20:15:06 +0100
> Florian Zieboll  wrote:
> 
> > $ rm /var/lib/aptitude/pkgstates*
> 
> 
> I forgot to mention that aptitude will re-populate the file on the next
> run.

Of course it did when I ran the reinstalled aptitude.

-- hendrik
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] corrupted aptitude state -- SOLVED

2017-01-25 Thread Hendrik Boom
On Wed, Jan 25, 2017 at 08:15:06PM +0100, Florian Zieboll wrote:
> On Wed, 25 Jan 2017 13:44:26 -0500
> Hendrik Boom  wrote:
> 
> 
> > It turns out my problems with aptitude seem to be over, after doing
> > 
> > apt purge aptitude
> > apt install aptitude
> 
> 
> This appears to be a kind of redmondish solution... I'm wondering, if 

Indeed.  But at least I didn't have to reinstall Devuan.  That would have been 
totally redmondish.

> $ rm /var/lib/aptitude/pkgstates*

It might have.  The main point of purge was to remove its configuration and 
state 
so it would start over. 

-- hendrik

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] corrupted aptitude state -- SOLVED

2017-01-25 Thread Florian Zieboll
On Wed, 25 Jan 2017 20:15:06 +0100
Florian Zieboll  wrote:

> $ rm /var/lib/aptitude/pkgstates*


I forgot to mention that aptitude will re-populate the file on the next
run.

f.

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] corrupted aptitude state -- SOLVED

2017-01-25 Thread Florian Zieboll
On Wed, 25 Jan 2017 13:44:26 -0500
Hendrik Boom  wrote:


> It turns out my problems with aptitude seem to be over, after doing
> 
>   apt purge aptitude
>   apt install aptitude


This appears to be a kind of redmondish solution... I'm wondering, if 

$ rm /var/lib/aptitude/pkgstates*

would have been sufficient? See man(5) aptitude, section "Files".

libre Grüße,

Florian


___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] corrupted aptitude state -- SOLVED

2017-01-25 Thread Hendrik Boom
On Wed, Jan 25, 2017 at 06:37:08PM +, KatolaZ wrote:
> On Wed, Jan 25, 2017 at 01:22:17PM -0500, Hendrik Boom wrote:
> 
> [cut]
> 
> > 
> > Where can I find complete documentation for apt-*?
> >
> 
> As usual, the complete documentation is to be found by means of:
> 
>   man apt-get
>   man apt-cache
>   man apt-mark
> 
> But in general you will just need:
> 
> - apt-get install package (...)
> - apt-get remove package (...)
> - apt-get purge package (like remove, but also purges config files)
> - apt-get update (update the list of available packages from repos)
> - apt-get upgrade (upgrade all packages you can)
> - apt-get dist-upgrade (like upgrade, but also installs new version of
> existing packages and manages the corresponding deps)
> 
> - apt-get autoremove (remove all packages which are not required by any
>manually installed package)
> 
> - apt-cache search something (search "something" among all package
>descriptions. "something" can be a POSIX regex(7))
> 
> - dpkg --search /bin/ls (which package has installed "/bin/ls"?)
> 
> - dpkg -L package (which files have been installed by "package"?)
> 
> 
> 
> 
> > In particular, is there an option I can place on an install or remove 
> > command that 
> > will report what it is going to do without actually doing it?
> >
> 
> apt-get install --simulate package

Thank you.  That ws the optio I could not find.  Though now that know it,
it was wasy to ding in man apt-get.

It turns out my problems with aptitude seem to be over, after doing

apt purge aptitude
apt install aptitude

-- hendrik
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] corrupted aptitude state. (WAS: python-sipsimple dependencies

2017-01-25 Thread KatolaZ
On Wed, Jan 25, 2017 at 01:22:17PM -0500, Hendrik Boom wrote:

[cut]

> 
> Where can I find complete documentation for apt-*?
>

As usual, the complete documentation is to be found by means of:

  man apt-get
  man apt-cache
  man apt-mark

But in general you will just need:

- apt-get install package (...)
- apt-get remove package (...)
- apt-get purge package (like remove, but also purges config files)
- apt-get update (update the list of available packages from repos)
- apt-get upgrade (upgrade all packages you can)
- apt-get dist-upgrade (like upgrade, but also installs new version of
  existing packages and manages the corresponding deps)

- apt-get autoremove (remove all packages which are not required by any
 manually installed package)

- apt-cache search something (search "something" among all package
 descriptions. "something" can be a POSIX regex(7))

- dpkg --search /bin/ls (which package has installed "/bin/ls"?)

- dpkg -L package (which files have been installed by "package"?)




> In particular, is there an option I can place on an install or remove command 
> that 
> will report what it is going to do without actually doing it?
>

apt-get install --simulate package

HND

KatolaZ

-- 
[ ~.,_  Enzo Nicosia aka KatolaZ - GLUGCT -- Freaknet Medialab  ]  
[ "+.  katolaz [at] freaknet.org --- katolaz [at] yahoo.it  ]
[   @)   http://kalos.mine.nu ---  Devuan GNU + Linux User  ]
[ @@)  http://maths.qmul.ac.uk/~vnicosia --  GPG: 0B5F062F  ] 
[ (@@@)  Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ  ]
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] corrupted aptitude state. (WAS: python-sipsimple dependencies

2017-01-25 Thread Hendrik Boom
On Wed, Jan 25, 2017 at 04:36:13PM +, KatolaZ wrote:
> On Wed, Jan 25, 2017 at 10:58:10AM -0500, Hendrik Boom wrote:
> 
> [cut]
> 
> > 
> > So uninstalling and purging aptitude's configuration looks viable.  As long 
> > as it 
> > doesn't do nasties like uninstalling grub and wicd, which it was 
> > threatening to do 
> > a while ago.
> > 
> > But I might first create myself an up-to-date bootable USB installation 
> > stick just 
> > in case.
> >
> 
> There are thousands of Debian/Devuan installations out there which
> have never used aptitude. I know that, for some misterious reason that
> defies my logic, apt-get "is no longer the recommended primary tool"
> for package management in Debian, and a similar death-sentence has
> been issued for dselect in the same page:
> 
>   https://wiki.debian.org/DebianPackageManagement
> 
> But again, I personally don't see the reason why this should be the
> case at all, if we exclude the classic "oh, they are very old cli-only
> tools, and anything that is old should become obsolete, sooner or
> later, so better sooner than later because we need to reimplement them
> in a more complicated and disfunctional way..."
> 
> 
> The few times I have tried aptitude in the last ten years or so, I
> have always ended up with zillions of useless packages installed just
> because they were "recommended" or "suggested". It is exactly this
> "I-am-a-stupid-but-still-idiotproof-software" a(p|t)titude that I find
> very disturbing.
> 
> > Yes, I got myself into an ugly mess.
> > 
> 
> Not at all. There is nothing that you can't get sorted by using apt-*
> and/or dpkg, and a bit of time and patience. Unless you have gone all
> the way down to find yourself typing something like "Yes, my dear
> apt-get-I-know-everything, I understand very well that by removing
> this damn package I will most probably destroy my system, but you know
> what? I want you to proceed anyway, immediately, and I also would
> appreciate if you could just shut the fuck up and mind your business
> in the future!" :D

Now looking for documentation.  Every documentation file I find seems to have a 
slightly different combination of options and commands, so I conclude the ones 
I 
found are incomplete or obsolete or both.

Where can I find complete documentation for apt-*?

In particular, is there an option I can place on an install or remove command 
that 
will report what it is going to do without actually doing it?

-- hendrik


> 
> My2Cents
> 
> KatolaZ
> 
> -- 
> [ ~.,_  Enzo Nicosia aka KatolaZ - GLUGCT -- Freaknet Medialab  ]  
> [ "+.  katolaz [at] freaknet.org --- katolaz [at] yahoo.it  ]
> [   @)   http://kalos.mine.nu ---  Devuan GNU + Linux User  ]
> [ @@)  http://maths.qmul.ac.uk/~vnicosia --  GPG: 0B5F062F  ] 
> [ (@@@)  Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ  ]
> ___
> Dng mailing list
> Dng@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] corrupted aptitude state.

2017-01-25 Thread Hendrik Boom
On Wed, Jan 25, 2017 at 05:56:41PM +0100, info at smallinnovations.nl wrote:
> On 25-01-17 16:58, Hendrik Boom wrote:
> >
> >So uninstalling and purging aptitude's configuration looks viable.  As long 
> >as it
> >doesn't do nasties like uninstalling grub and wicd, which it was threatening 
> >to do
> >a while ago.
> >
> >But I might first create myself an up-to-date bootable USB installation 
> >stick just
> >in case.
> >
> >Yes, I got myself into an ugly mess.
> >
> >-- hendrik
> >
> Before doing any purging try:
> 
> aptitude search '~i !~M' -F %p >package.list
> 
> and save the package.list. Just in case.

Done. Is this the list of all packages installed, or just the top-level ones 
that 
have been explicitly requested over the years, including at initial 
installation?

-- hendrik

> 
> Grtz.
> 
> Nick
> ___
> Dng mailing list
> Dng@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] corrupted aptitude state. (WAS: python-sipsimple dependencies

2017-01-25 Thread info at smallinnovations.nl

On 25-01-17 16:58, Hendrik Boom wrote:


So uninstalling and purging aptitude's configuration looks viable.  As long as 
it
doesn't do nasties like uninstalling grub and wicd, which it was threatening to 
do
a while ago.

But I might first create myself an up-to-date bootable USB installation stick 
just
in case.

Yes, I got myself into an ugly mess.

-- hendrik


Before doing any purging try:

aptitude search '~i !~M' -F %p >package.list

and save the package.list. Just in case.

Grtz.

Nick
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] corrupted aptitude state. (WAS: python-sipsimple dependencies

2017-01-25 Thread KatolaZ
On Wed, Jan 25, 2017 at 10:58:10AM -0500, Hendrik Boom wrote:

[cut]

> 
> So uninstalling and purging aptitude's configuration looks viable.  As long 
> as it 
> doesn't do nasties like uninstalling grub and wicd, which it was threatening 
> to do 
> a while ago.
> 
> But I might first create myself an up-to-date bootable USB installation stick 
> just 
> in case.
>

There are thousands of Debian/Devuan installations out there which
have never used aptitude. I know that, for some misterious reason that
defies my logic, apt-get "is no longer the recommended primary tool"
for package management in Debian, and a similar death-sentence has
been issued for dselect in the same page:

  https://wiki.debian.org/DebianPackageManagement

But again, I personally don't see the reason why this should be the
case at all, if we exclude the classic "oh, they are very old cli-only
tools, and anything that is old should become obsolete, sooner or
later, so better sooner than later because we need to reimplement them
in a more complicated and disfunctional way..."


The few times I have tried aptitude in the last ten years or so, I
have always ended up with zillions of useless packages installed just
because they were "recommended" or "suggested". It is exactly this
"I-am-a-stupid-but-still-idiotproof-software" a(p|t)titude that I find
very disturbing.

> Yes, I got myself into an ugly mess.
> 

Not at all. There is nothing that you can't get sorted by using apt-*
and/or dpkg, and a bit of time and patience. Unless you have gone all
the way down to find yourself typing something like "Yes, my dear
apt-get-I-know-everything, I understand very well that by removing
this damn package I will most probably destroy my system, but you know
what? I want you to proceed anyway, immediately, and I also would
appreciate if you could just shut the fuck up and mind your business
in the future!" :D

My2Cents

KatolaZ

-- 
[ ~.,_  Enzo Nicosia aka KatolaZ - GLUGCT -- Freaknet Medialab  ]  
[ "+.  katolaz [at] freaknet.org --- katolaz [at] yahoo.it  ]
[   @)   http://kalos.mine.nu ---  Devuan GNU + Linux User  ]
[ @@)  http://maths.qmul.ac.uk/~vnicosia --  GPG: 0B5F062F  ] 
[ (@@@)  Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ  ]
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng