Hello All,
I'm facing a issue with my pkg database sqlite.
I'm not able to install any package.
Here the error message :
I tried to upgrade & restore db:
i did a truss with pkg install command :
So i just went into that database and tried to create the missing table :
now, i ran out of idea...db seems to be okay..but not...
I'm facing a issue with my pkg database sqlite.
I'm not able to install any package.
Here the error message :
Code:
pkg: sqlite error while executing INSERT OR IGNORE INTO licenses(name) VALUES(?1) in file pkgdb.c:1614: table licenses has no column named name
I tried to upgrade & restore db:
Code:
pkg upgrade -f
pkg-static upgrade -f
pkg backup -r pkg.sql.xz
i did a truss with pkg install command :
Code:
sqlite error while executing INSERT OR IGNORE INTO licenses(name) VALUES(?1) in file pkgdb.c:1614: table licenses has no column named namewrite(2,"sqlite error while executing INS"...,138) = 138 (0x8a)
write(2,"\n",1) = 1 (0x1)
fstat(8,{ mode=-rw-r--r-- ,inode=103570,size=688128,blksize=131072 }) = 0 (0x0)
fstatat(4,"repo-custom.sqlite",{ mode=-rw-r--r-- ,inode=103570,size=688128,blksize=131072 },0x0) = 0 (0x0)
close(8) = 0 (0x0)
close(3) = 0 (0x0)
close(4) = 0 (0x0)
exit(0x4a)
process exit, rval = 74
So i just went into that database and tried to create the missing table :
Code:
sqlite> CREATE TABLE licenses (id INTEGER PRIMARY KEY,name TEXT NOT NULL UNIQUE);
Error: table licenses already exists
now, i ran out of idea...db seems to be okay..but not...