Fixed issues in ubuntu lts running and rewrite file struct