Did you plant the other bugs in the same night? Because you have to get caught by the guards and there will be a prompt for you to put a bug under the table in the prison. If what you're saying is that you're actually stuck in the prison, either investigate your bed, or turn off skip mode.
You can alternatively interact with the outside if you're going the pure route and it will trick the guards to running out, leaving you free to plant the bug