[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: removing file??



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 <amnojeeuw@gmail.com> 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 <amnojeeuw@gmail.com> 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?
>>> 


Reply to: