Re: removing file??

2022-11-11 Thread Amn
Thanks folks, I don't know what I did, but I was able to reinstall 
code::blocks. Thank ya'll.


On 2022-11-11 2:58 a.m., Tim Woodall wrote:

On Thu, 10 Nov 2022, Amn wrote:


I did that, but I got this :

jamiil@ArbolOne:~$ sudo apt clean
jamiil@ArbolOne:~$ sudo apt install codeblocks-dev
Reading package lists... Done

snip
?trying to overwrite '/usr/include/codeblocks/Alignment.h', which is 
also in pac

kage codeblocks-headers 20.03
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
?/var/cache/apt/archives/codeblocks-dev_20.03-3.1+b1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)



apt-get remove --purge codeblocks-headers

Make sure that doesn't remove stuff you want.






Re: removing file??

2022-11-11 Thread David Wright
On Fri 11 Nov 2022 at 13:33:12 (+0100), hede wrote:
> Am 11.11.2022 04:32, schrieb Amn:
> > I am trying to remove this file :
> > '/var/cache/apt/archives/codeblocks-dev_20.03-3_amd64.deb', but after
> > trying, even as a 'su', but I am unable to. Any suggestion how to do
> > this?
> 
> The others are trying to solve the problem on the package layer. But
> if removing such an archive file is not possible even with root
> permissions, this could potentially indicate some more fundamental
> problem. Like errors in the data layer of the partition (broken
> harddisk) or read-only mounts.
> 
> My question would be: _How_ did you try to delete the file with root
> permissions? And what was the result (error message)?

AIUI the file was removed entirely normally, but then immediately
recreated by running the apt install command (which downloaded it again).

> And like others suggested: If you are not familiar with deeper Debian
> system knowledge, the (unstable) SID distribution may not be your best
> option. I'd suggest to use some stable distribution (like Debian
> Bullseye currently).

I'm not convinced that Amn /is/ running sid, or at least intending to.
There again, it's possible they upgraded in frustration because they
couldn't get their bluetooth to work. (I'm no help with BT audio.)

Cheers,
David.



Re: removing file??

2022-11-11 Thread hede

Am 11.11.2022 04:32, schrieb Amn:

I am trying to remove this file :
'/var/cache/apt/archives/codeblocks-dev_20.03-3_amd64.deb', but after
trying, even as a 'su', but I am unable to. Any suggestion how to do
this?


The others are trying to solve the problem on the package layer. But if 
removing such an archive file is not possible even with root 
permissions, this could potentially indicate some more fundamental 
problem. Like errors in the data layer of the partition (broken 
harddisk) or read-only mounts.


My question would be: _How_ did you try to delete the file with root 
permissions? And what was the result (error message)?


And like others suggested: If you are not familiar with deeper Debian 
system knowledge, the (unstable) SID distribution may not be your best 
option. I'd suggest to use some stable distribution (like Debian 
Bullseye currently).


regards
hede



Re: removing file??

2022-11-11 Thread Greg Wooledge
On Fri, Nov 11, 2022 at 07:41:25AM +, Peter von Kaehne wrote:
> To resolve the conflict you need to figure out what is the (other) owner of 
> '/usr/include/codeblocks/Alignment.h'.

It says it right there in the error message.

> >  trying to overwrite '/usr/include/codeblocks/Alignment.h', which is also 
> > in pac
> > kage codeblocks-headers 20.03



Re: removing file??

2022-11-11 Thread Greg Wooledge
On Thu, Nov 10, 2022 at 11:21:15PM -0500, Amn wrote:
> jamiil@ArbolOne:~$ sudo apt clean
> jamiil@ArbolOne:~$ sudo apt install codeblocks-dev
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> The following NEW packages will be installed:
>   codeblocks-dev
> 0 upgraded, 1 newly installed, 0 to remove and 322 not upgraded.
> Need to get 522 kB of archives.
> After this operation, 1,905 kB of additional disk space will be used.
> Get:1 http://ftp.de.debian.org/debian sid/main amd64 codeblocks-dev amd64
> 20.03-3.1+b1 [522 kB]

Sid.

> Fetched 522 kB in 2s (313 kB/s)
> (Reading database ... 258020 files and directories currently installed.)
> Preparing to unpack .../codeblocks-dev_20.03-3.1+b1_amd64.deb ...
> Unpacking codeblocks-dev:amd64 (20.03-3.1+b1) ...
> dpkg: error processing archive
> /var/cache/apt/archives/codeblocks-dev_20.03-3.1+
> b1_amd64.deb (--unpack):
>  trying to overwrite '/usr/include/codeblocks/Alignment.h', which is also in
> pac
> kage codeblocks-headers 20.03

A sid user ought to be able to read these errors and figure out how to
deal with the situation.

The FIRST thing you should do is file a bug report, so that the bug can
be fixed in Debian.  Sid users should also be extremely familiar with
filing bug reports.  That's why you're running sid in the first place,
y'know?  So you can help Debian fix bugs.

Second, since the offending file is in an OLDER version of the
codeblocks-headers package, one which will presumably be updated with
a sid version, it should be obvious which package you want to remove,
temporarily.



Re: removing file??

2022-11-11 Thread Curt Howland
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


> dpkg: error processing archive 
> /var/cache/apt/archives/codeblocks-dev_20.03-3.1+
> b1_amd64.deb (--unpack):
>   trying to overwrite '/usr/include/codeblocks/Alignment.h', which 
is 
> also in pac
> kage codeblocks-headers 20.03
> dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
> Errors were encountered while processing:
>   /var/cache/apt/archives/codeblocks-dev_20.03-3.1+b1_amd64.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)

This can occur when you have upgraded a Debian system from one major 
version to another "in place", that is, without wiping and 
reinstalling.

Once you've gotten it to the point where this is the only error left, 
you can fix it by using a sledgehammer:

# 
dpkg -i --force-overwrite 
/var/cache/apt/archives/codeblocks-dev_20.03-3.1+b1_amd64.deb

What this does is tell the Debian package installer to do the 
overwrite. When dpkg is run as an "automatic" process it won't do it 
because such a conflict can cause serious problems if it occurs 
within a Debian version, but not _between_ Debian versions.

Or when I was running Sid for several years.

Then run your usual package manager process again to finish anything 
this error was preventing.

In my experience this kind of thing has only happened _between_ Debian 
major versions, and as such forcing the overwrite has not caused any 
problems that I could discern.

That it happens so rarely and only in such extreme circumstances is a 
testament to the quality of the Debian package maintainers and their 
attention to detail.

Curt-

- -- 
You may my glories and my state dispose,
But not my griefs; still am I king of those.
 --- William Shakespeare, "Richard II"

-BEGIN PGP SIGNATURE-

iHUEAREIAB0WIQTaYVhJsIalt8scIDa2T1fo1pHhqQUCY246EwAKCRC2T1fo1pHh
qVn2AQDV/gJz0f19Uw+TfMOWPQWwxuqiVYh7frnnWnCSvBPs4gEAy4o6E0/K7DAf
QUlWBoo5DPui+tlBeeIL0uLFqNj6lcQ=
=abMp
-END PGP SIGNATURE-



Re: removing file??

2022-11-10 Thread Tim Woodall

On Thu, 10 Nov 2022, Amn wrote:


I did that, but I got this :

jamiil@ArbolOne:~$ sudo apt clean
jamiil@ArbolOne:~$ sudo apt install codeblocks-dev
Reading package lists... Done

snip
?trying to overwrite '/usr/include/codeblocks/Alignment.h', which is also in 
pac

kage codeblocks-headers 20.03
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
?/var/cache/apt/archives/codeblocks-dev_20.03-3.1+b1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)



apt-get remove --purge codeblocks-headers

Make sure that doesn't remove stuff you want.




Re: removing file??

2022-11-10 Thread Peter von Kaehne
You got a conflict. 

The problem does not lie in /var/apt/cache but in 
'/usr/include/codeblocks/Alignment.h'
which was put there by something else than you are now installing. 

To resolve the conflict you need to figure out what is the (other) owner of 
'/usr/include/codeblocks/Alignment.h'. You can then remove that (if you want 
to) to install the other file. 

Sometimes there are stale and unowned files left behind by previous incomplete 
package removals. These can then usually simply get deleted. 

Peter

Sent from my phone. Please forgive misspellings and weird “corrections”

> On 11 Nov 2022, at 04:21, Amn  wrote:
> 
> I did that, but I got this :
> 
> jamiil@ArbolOne:~$ sudo apt clean
> jamiil@ArbolOne:~$ sudo apt install codeblocks-dev
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> The following NEW packages will be installed:
>   codeblocks-dev
> 0 upgraded, 1 newly installed, 0 to remove and 322 not upgraded.
> Need to get 522 kB of archives.
> After this operation, 1,905 kB of additional disk space will be used.
> Get:1 http://ftp.de.debian.org/debian sid/main amd64 codeblocks-dev amd64 
> 20.03-3.1+b1 [522 kB]
> Fetched 522 kB in 2s (313 kB/s)
> (Reading database ... 258020 files and directories currently installed.)
> Preparing to unpack .../codeblocks-dev_20.03-3.1+b1_amd64.deb ...
> Unpacking codeblocks-dev:amd64 (20.03-3.1+b1) ...
> dpkg: error processing archive 
> /var/cache/apt/archives/codeblocks-dev_20.03-3.1+
> b1_amd64.deb (--unpack):
>  trying to overwrite '/usr/include/codeblocks/Alignment.h', which is also in 
> pac
> kage codeblocks-headers 20.03
> dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
> Errors were encountered while processing:
>  /var/cache/apt/archives/codeblocks-dev_20.03-3.1+b1_amd64.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
>> On 2022-11-10 11:17 p.m., Peter von Kaehne wrote:
>> Why do you want to remove it?
>> 
>> You would remove it with sudo apt clean
>> 
>> At which point that directory should be empty, it is just a cache for 
>> install files
>> 
>> Sent from my phone. Please forgive misspellings and weird “corrections”
>> 
 On 11 Nov 2022, at 03:33, Amn  wrote:
>>> 
>>> I am trying to remove this file : 
>>> '/var/cache/apt/archives/codeblocks-dev_20.03-3_amd64.deb', but after 
>>> trying, even as a 'su', but I am unable to. Any suggestion how to do this?
>>> 



Re: removing file??

2022-11-10 Thread Amn

I did that, but I got this :

jamiil@ArbolOne:~$ sudo apt clean
jamiil@ArbolOne:~$ sudo apt install codeblocks-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  codeblocks-dev
0 upgraded, 1 newly installed, 0 to remove and 322 not upgraded.
Need to get 522 kB of archives.
After this operation, 1,905 kB of additional disk space will be used.
Get:1 http://ftp.de.debian.org/debian sid/main amd64 codeblocks-dev 
amd64 20.03-3.1+b1 [522 kB]

Fetched 522 kB in 2s (313 kB/s)
(Reading database ... 258020 files and directories currently installed.)
Preparing to unpack .../codeblocks-dev_20.03-3.1+b1_amd64.deb ...
Unpacking codeblocks-dev:amd64 (20.03-3.1+b1) ...
dpkg: error processing archive 
/var/cache/apt/archives/codeblocks-dev_20.03-3.1+

b1_amd64.deb (--unpack):
 trying to overwrite '/usr/include/codeblocks/Alignment.h', which is 
also in pac

kage codeblocks-headers 20.03
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/codeblocks-dev_20.03-3.1+b1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

On 2022-11-10 11:17 p.m., Peter von Kaehne wrote:

Why do you want to remove it?

You would remove it with sudo apt clean

At which point that directory should be empty, it is just a cache for install 
files

Sent from my phone. Please forgive misspellings and weird “corrections”


On 11 Nov 2022, at 03:33, Amn  wrote:

I am trying to remove this file : 
'/var/cache/apt/archives/codeblocks-dev_20.03-3_amd64.deb', but after trying, 
even as a 'su', but I am unable to. Any suggestion how to do this?