Score:1

chown: cannot access '/var/lib/odoo': No such file or directory

ru flag

I want to install odoo 14 on ubuntu 20.04.2, everytime I want to install odoo's dependencies this error comes up:

chown: cannot access '/var/lib/odoo': No such file or directory
dpkg: error processing package odoo (--configure): installed odoo
package post-installation script subprocess returned error exit status 1 
Errors were encountered while processing: odoo 
E: Sub-process /usr/bin/dpkg returned an error code (1)

I was following the installation instruction on https://www.candidroot.com/blog/our-candidroot-blog-1/post/how-to-install-odoo-14-on-ubuntu-20-04-lts-67 and the error comes up when I run step5.

I tried other solutions but the error is still there.

N0rbert avatar
zw flag
Run `sudo mkdir /var/lib/odoo` and retry.
Score:0
zw flag

You can use alternative solution as well - manually install deb-package from Ubuntu 21.04:

cd ~/Downloads
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/o/odoo/odoo-14_14.0.0+dfsg.2-5build1_all.deb

sudo apt-get update
sudo apt-get install ./odoo-14_14.0.0+dfsg.2-5build1_all.deb
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.