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

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值