Solving alien’s “File exists unable to mkdir” problem

本文介绍了解决使用 Alien 在 OpenSuse 上安装 Viber 时出现的 'File exists unable to mkdir' 错误的方法。该错误通常发生在第二次安装软件时,文章详细解释了错误产生的原因,并提供了一种简单的解决方案:删除已存在的安装文件夹。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

So I think I’m not the only one who faced this error. It is not explained in any way,  so if you read this “File exists
unable to mkdir” you don’t really know where you should look. And now you do, thanks to me =))

This error occurs when you are trying installing some software for the second time (previous install might have failed or you may have re-installed your OS without formatting /home partition)

So when you are trying installing let’s say, Viber on your OpenSuse with Alien (yes, there seems to to be no official .rpm package, but who cares?) you may get this:

r01@R01-PC:~/Downloads$ sudo alien -rci viber.deb 
root's password:
mkdir: cannot create directory ‘viber-3.1.2.3’: File exists
unable to mkdir viber-3.1.2.3: at /usr/lib/perl5/vendor_perl/5.18.1/Alien/Package.pm line 257.

So pay attention that my path is:

r01@R01-PC:~/Downloads$ pwd
/home/r01/Downloads

Your path might be different, so keep this in mind. My viber.deb package is in my Downloads directory and pwd is also there.

Basically Alien creates folder named as “package_name-version” in my case that was /home/r01/Downloads/viber-3.1.2.3. We just need to remove that folder by

rm -rf /home/r01/Downloads/viber-3.1.2.3

That’s it. It will install without that annoying error.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值